Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 603 Bytes

File metadata and controls

22 lines (16 loc) · 603 Bytes

Number Guessing Game

A simple Python console game where the computer randomly selects a number between 1 and 100, and the player tries to guess it.


🎮 How It Works

  1. The program generates a random number between 1 and 100.
  2. The player inputs a guess.
  3. The program gives feedback:
    • "Too low!" if the guess is smaller than the number.
    • "Too high!" if the guess is bigger than the number.
  4. The game continues until the player guesses the correct number.
  5. The program shows the total number of attempts.

🛠️ Usage

Run the game

python guess_number.py