🎮

Higher-Lower Game

Python24 lines· A number guessing game. The program picks a random number between 0 and 100 and tells you whether to guess higher or lower until you find it.
Original project by @ZackeryRSmith — view source on GitHub
Ready when you are
README· what to build

Higher-Lower Game

A number guessing game. The program picks a random number between 0 and 100 and tells you whether to guess higher or lower until you find it.

Example

Welcome to the Higher-Lower Game!
Guess the number: 50
You entered: 50
Higher
Guess the number: 75
You entered: 75
Lower
Guess the number: 63
You entered: 63
Higher
Guess the number: 69
You entered: 69
You win! the number is 69!

How to run on localhost

python main.py

Dependencies

Standard library only (random).

higher-lower.py· Python 3.x
31 lines
Console· terminal