Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1000 Bytes

File metadata and controls

43 lines (33 loc) · 1000 Bytes

🐍 Python Number Guessing Game | Beginner Project

A simple and interactive Number Guessing Game built using Python.
The game allows users to guess a randomly generated number with different difficulty levels.


📌 Features

  • 🎮 Three difficulty levels:
    • Easy (1–10)
    • Medium (1–50)
    • Difficult (1–100)
  • 🔢 Random number generation
  • 📈 Hints for guesses (Too high / Too low)
  • 🧮 Counts attempts (only valid guesses)
  • ❌ Handles invalid inputs using try-except
  • 👨‍💻 Beginner-friendly and exam-ready

🛠️ Concepts Used

  • while loop
  • if-elif-else
  • random module
  • try-except
  • User input handling

▶️ How to Run the Game

  1. Make sure Python is installed
  2. Clone the repository:
    git clone https://github.com/junaidfarhan/python-number-guessing-game
  3. Navigate to the Folder:
    cd python-number-guessing-game
  4. Run the Script:
    python number_guessing_game.py