A simple and interactive Number Guessing Game built using Python.
The game allows users to guess a randomly generated number with different difficulty levels.
- ๐ฎ 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
whileloopif-elif-elserandommoduletry-exceptUser input handling
- Make sure Python is installed
- Clone the repository:
git clone https://github.com/junaidfarhan/python-number-guessing-game
- Navigate to the Folder:
cd python-number-guessing-game - Run the Script:
python number_guessing_game.py