Skip to content

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! πŸŽ‰

Notifications You must be signed in to change notification settings

LakshayD02/Number-Guessing-Game_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

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. 🐍

About

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! πŸŽ‰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages