All 20 Python Games for Beginners
Every game here is a complete Python program you can play in your browser, read line by line and extend. Your progress (★ per solved challenge) is saved in this browser.
- #01☆☆☆
Tic Tac Toe in Python
Learn Lists, Functions and if, elif and else.
- #02☆☆☆
Rock Paper Scissors in Python
Learn The random module, Dictionaries and if, elif and else.
- #03☆☆☆
Snake Game in Python (Turtle)
Learn Turtle graphics, Lists and Functions.
- #04☆☆☆
Hangman in Python
Learn Strings, Lists and while loops.
- #05☆☆☆
Number Guessing Game in Python
Learn The random module, while loops and if, elif and else.
- #06☆☆☆
Pong-Style Paddle Game in Python
Learn Turtle graphics, Functions and if, elif and else.
- #07☆☆☆
Mad Libs-Style Story Game in Python
Learn input() and print(), Strings and Variables.
- #08☆☆☆
Text Adventure Game in Python
Learn Dictionaries, Strings and while loops.
- #09☆☆☆
Connect Four-Style Game in Python
Learn 2D lists and grids, Lists and Functions.
- #10☆☆☆
Minesweeper-Style Game in Python
Learn 2D lists and grids, Functions and for loops.
- #11☆☆☆
Sudoku in Python
Learn 2D lists and grids, Functions and for loops.
- #12☆☆☆
Battleship-Style Game in Python
Learn 2D lists and grids, The random module and Strings.
- #13☆☆☆
Maze Game in Python
Learn 2D lists and grids, Functions and Lists.
- #14☆☆☆
Higher or Lower Game in Python
Learn The random module, while loops and if, elif and else.
- #15☆☆☆
Word Guessing Game in Python
Learn Strings, Lists and Dictionaries.
- #16☆☆☆
Coin Flip in Python
Learn The random module, for loops and Variables.
- #17☆☆☆
Turtle Race in Python
Learn Turtle graphics, Lists and for loops.
- #18☆☆☆
Python Quiz Game
Learn Dictionaries, Lists and for loops.
- #19☆☆☆
Math Quiz Game in Python
Learn The random module, Dictionaries and for loops.
- #20☆☆☆
Typing Speed Game in Python
Learn Strings, Functions and for loops.
Python games compared
Lines of code, time to work through the page, and the main Python ideas each game practises.
| # | Game | Level | Lines | Time | Main concepts |
|---|---|---|---|---|---|
| 1 | ⭕ Tic Tac Toe in Python | Easy | 73 | 35 min | Lists, Functions, if, elif and else, for loops |
| 2 | ✊ Rock Paper Scissors in Python | Beginner | 41 | 20 min | The random module, Dictionaries, if, elif and else, while loops |
| 3 | 🐍 Snake Game in Python (Turtle) | Medium | 90 | 45 min | Turtle graphics, Lists, Functions, if, elif and else |
| 4 | 🔤 Hangman in Python | Easy | 52 | 30 min | Strings, Lists, while loops, if, elif and else |
| 5 | 🔢 Number Guessing Game in Python | Beginner | 33 | 15 min | The random module, while loops, if, elif and else, input() and print() |
| 6 | 🏓 Pong-Style Paddle Game in Python | Medium | 84 | 40 min | Turtle graphics, Functions, if, elif and else, Variables |
| 7 | 📝 Mad Libs-Style Story Game in Python | Beginner | 25 | 15 min | input() and print(), Strings, Variables, Lists |
| 8 | 🗺️ Text Adventure Game in Python | Easy | 70 | 40 min | Dictionaries, Strings, while loops, if, elif and else |
| 9 | 🔴 Connect Four-Style Game in Python | Medium | 70 | 45 min | 2D lists and grids, Lists, Functions, for loops |
| 10 | 💣 Minesweeper-Style Game in Python | Medium | 77 | 45 min | 2D lists and grids, Functions, for loops, The random module |
| 11 | 🧩 Sudoku in Python | Medium | 59 | 45 min | 2D lists and grids, Functions, for loops, Lists |
| 12 | 🚢 Battleship-Style Game in Python | Easy | 72 | 35 min | 2D lists and grids, The random module, Strings, Lists |
| 13 | 🌀 Maze Game in Python | Medium | 76 | 40 min | 2D lists and grids, Functions, Lists, while loops |
| 14 | ⬆️ Higher or Lower Game in Python | Beginner | 39 | 15 min | The random module, while loops, if, elif and else, Variables |
| 15 | 🟩 Word Guessing Game in Python | Easy | 38 | 30 min | Strings, Lists, Dictionaries, while loops |
| 16 | 🪙 Coin Flip in Python | Beginner | 33 | 15 min | The random module, for loops, Variables, if, elif and else |
| 17 | 🐢 Turtle Race in Python | Easy | 50 | 25 min | Turtle graphics, Lists, for loops, while loops |
| 18 | ❓ Python Quiz Game | Beginner | 47 | 20 min | Dictionaries, Lists, for loops, The random module |
| 19 | ➗ Math Quiz Game in Python | Beginner | 38 | 20 min | The random module, Dictionaries, for loops, Functions |
| 20 | ⌨️ Typing Speed Game in Python | Easy | 44 | 20 min | Strings, Functions, for loops, Variables |
Prefer to grab the code? All 20 programs on one page, ready to copy and paste.