https://github.com/lakshayd02/number-guessing-game_python
A fun and interactive number guessing game written in Python! Try to guess the randomly generated number between 1 and 50. Perfect for practicing your Python skills and having a bit of fun! đ
https://github.com/lakshayd02/number-guessing-game_python
guess-the-number number-guessing-game python python3 pythonlibrarires random-library
Last synced: 3 months ago
JSON representation
A fun and interactive number guessing game written in Python! Try to guess the randomly generated number between 1 and 50. Perfect for practicing your Python skills and having a bit of fun! đ
- Host: GitHub
- URL: https://github.com/lakshayd02/number-guessing-game_python
- Owner: LakshayD02
- Created: 2023-10-14T17:36:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-31T16:19:01.000Z (5 months ago)
- Last Synced: 2025-04-15T16:18:21.882Z (3 months ago)
- Topics: guess-the-number, number-guessing-game, python, python3, pythonlibrarires, random-library
- Language: Python
- Homepage: https://jmp.sh/wGQFkqOu
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Number-Guessing-Game_Python
## Description
This Python program generates a secret random number between 1 and 50. The player is then prompted to guess the number. The program provides feedback after each guess, indicating whether the guess is too high or too low. It keeps track of the number of attempts and congratulates the player when they guess correctly. It also includes error handling to ensure that the player enters valid numerical input. A classic game that's great for learning basic programming concepts! đšī¸
## Features
* **Random Number Generation:** The program generates a random number between 1 and 50 using Python's `random` module. đ˛
* **User Input:** Prompts the user to enter their guess. â¨ī¸
* **Feedback on Guesses:** Tells the user if their guess is too high or too low. âŦī¸âŦī¸
* **Attempt Counter:** Tracks the number of guesses the user has made. đĸ
* **Win Condition:** Congratulates the user when they guess the correct number. đ
* **Game Loop:** Allows the user to keep guessing until they win or choose to quit. đ
* **Input Validation:** Checks if the user's input is a valid number. â
## Technologies Used
* **Python:** The core programming language for the game logic and user interface. đ