This is a fun and interactive Number Guessing Game developed using Python. The player is asked to guess a randomly generated number between 1 and 100. After each guess, the program gives hints to guide the player—like whether the actual number is higher or lower than the guessed number. The game continues until the player correctly guesses the number.
It also keeps track of the number of attempts, so the player can see how many tries it took to guess the correct answer!
🛠️ Features: Random number generation between 1 and 100
Helpful clues (Higher/Lower) after each wrong guess
Counts the total number of attempts
Simple and beginner-friendly code structure
Command-line interface (text-based)
📌 Example: less Copy Edit Guess a number between 1 and 100: 50 Too low! Try again. Guess a number between 1 and 100: 75 Too high! Try again. Guess a number between 1 and 100: 63 Correct! You guessed it in 3 tries. 🚀 Technologies Used: Python 3
random module
input() function for user interaction
🧠 Concepts Practiced: Loops and conditions
Variables
User input
Random number logic