Number Guessing
Game

Python Loops Conditionals Functions Random
← Back to Games
number_guessing_game.py

// Press ▶ Run to start the game

›
Loopswhile + continue
Conditionalsif / elif / else
Functionsdef, return values
User Inputinput(), try/except
Randomrandom.randint()
Dicts.get() with defaults