Python Program – Guess The Number Game

By carriekaler Feb27,2024

100 Days of Code: The Complete Python Pro Boot Camp – Day 12 Project

Create a Guess the Number Game.

Computer chooses random number between 1 and 100.

User selects gameplay difficulty (Easy = 10 tries and Hard = 5 tries).

Computer will compare guess with random number and advise if too high or too low. Will tell user how many tires left and ask to guess again until user guesses correctly or runs out of tries.

Ask user if would like to play again. If yes, restart the game. If no, end game.

  1. Choose ‘Open in Replit’
  2. Select ‘Run’ to play/replay the game.
  3. Enter answers into the console where you see the tiny square at the end of sentences.