1
Assignment 1: Programming for Analytics (Python):
Instructions:
• Kindly submit a single Jupyter notebook file (.ipynb ) containing solutions of
all the questions. (A1_sec_rollnumber. ipynb)
• Its is a graded assignment for 10%.
• Please assume or use internet to understand the details of the problem
• You may refer to snake and ladder problem solved in class for reference.
1. Word Counter
Description: Implement a program that counts the number of words, characters, and
sentences in a given text. Use loops and conditionals to analyze the input.
2. Number Guessing Game
Description: Create a number-guessing game where the program randomly selects a
number between 1 and 100, and the user has to guess it. Provide feedback on whether the
guess is too high or too low for 5 attempts and declare winner or loser.
3. Tic-Tac-Toe
Description: Implement a two-player Tic-Tac-Toe game. Use a 2D list to represent the
board, and check for wins after each turn.
4. Rock-Paper-Scissors Tournament
Description: Create a Rock-Paper-Scissors game where two players compete in multiple
rounds based on users choice. Track scores and declare the overall winner.
5. Hangman
Description: Implement a simple Hangman game where the player has to guess a word by
suggesting letters. Keep track of wrong guesses and end the game when the player either
wins or loses after fixed number of rounds.
6. Simon Says
Description: Create a version of the Simon Says game where the computer generates a
sequence of colors, and the player must repeat the sequence correctly. Increase the
sequence length with each round.
7. Number Pyramid
Description: Write a program that creates a number pyramid. For a given height, print a
pyramid of numbers where each row contains numbers from 1 to the current row number.
Prof. Dnyanesh, Programming for Analytics, Big Data Analytics, Goa Institute of Management