Skip to content

Sazid72/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number-Guessing-Game

A simple number guessing game with Python

Number Guessing Game

A simple Python number guessing game where the player tries to guess a randomly generated number.

Features

  • Random number generation
  • User input handling
  • Feedback for high and low guesses
  • Unlimited guessing attempts (or until correct)

Requirements

  • Python 3

Installation

git clone <repository-url>
cd number-guessing-game

Run

python guess_the_number.py

Example

Guess a number between 1 and 100: 50
Too high!

Guess a number between 1 and 100: 25
Too low!

Guess a number between 1 and 100: 37
Congratulations! You guessed the number.

What I Learned

  • Python fundamentals
  • Loops and conditionals
  • User input validation
  • Random number generation

Author

Sazid Al Mafi

About

A simple number guessing game with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages