๐Ÿ

Python Quick Start

Zero to Game in Three Steps!

For Total Beginners  โ€ข  Ages 10โ€“12  โ€ข  3 Quick Starts

โฌ‡  Scroll to begin  โฌ‡

โฌ‡ Download All Python Scripts (.zip)
Q 1

Dice & Destiny ๐ŸŽฒ

Learning: print(), Variables & import random

๐ŸŽฒ
โญโ˜†โ˜†โ˜†โ˜† First Steps โฑ 20 min โœจ You'll make: A dice roller and a 5-round tournament โ€” your very first Python program

๐Ÿ“– The Story

This is your very first Python file โ€” no experience needed! You're going to roll virtual dice, store your player name in a variable, and run a best-of-5 dice tournament. By the end, Python will be doing the work for you, and every run will be different. Ready? Let's roll! ๐ŸŽฒ

๐Ÿ’ก Three Things You'll Learn

1. print() makes words appear on screen. 2. Variables store information in labelled boxes. 3. random.randint() rolls a virtual die โ€” different every time!

print("Hello!") โ†’ Hello! name = "Aria" import random random.randint(1, 20) โ†’ 14 (different every run!)

๐Ÿ–ฅ๏ธ Do This in PyCharm

  1. 1
    Open PyCharm โ†’ File โ†’ Openโ€ฆ โ†’ select the kids-python-adventure-lite folder โ†’ Trust Project. Then double-click quick_1_random_dice.py.
  2. 2
    Press the green โ–ถ Play button (top-right) or Shift + F10. Watch the Console at the bottom fill with dice rolls!
  3. 3
    Find # TODO #1 โ€” change "Adventurer" to YOUR name. Run again โ€” the dice rolls now include your name!
  4. 4
    Find # TODO #2 โ€” change randint(1, 6) to a different number. Try 100 for a 100-sided die!
  5. 5
    Find # TODO #3 โ€” replace the 5 random events with YOUR OWN. Run it 3 times to see different events appear!

๐Ÿ‘€ What to Look For in PyCharm

In the Console panel at the bottom, watch for:

  • โœ… Your name next to the dice rolls
  • โœ… Different numbers every time you press โ–ถ Run
  • โœ… One of your custom random events appearing at the bottom
  • โœ… The tournament showing who wins each round โ€” ๐Ÿ† WINS at the end!

๐ŸŽ‰ Different output every run = you're using Python like a real programmer!

๐Ÿ† After This Quick Start You'll Know:

print() Variables import random randint() choice()
Q 2

The Function Forge ๐Ÿ”ฎ

Learning: def, Parameters & return

โš—๏ธ
โญโญโ˜†โ˜†โ˜† Easy โฑ 25 min โœจ You'll make: A reusable hero announcer and a 5-round combat duel

๐Ÿ“– The Story

A Function Forge lets you craft reusable spell recipes. Write the recipe once with def, then cast that spell a hundred times without rewriting it. Pass ingredients in as parameters, and get a result back with return. This is how all real programs are built! ๐Ÿ”ฎ

๐Ÿ’ก Three Things You'll Learn

def defines a function. Parameters pass information in. return sends a result back out. Call the function by name to run it.

def greet(name): print("Hello, " + name)   greet("Aria") โ†’ Hello, Aria greet("Bolt") โ†’ Hello, Bolt

๐Ÿ–ฅ๏ธ Do This in PyCharm

  1. 1
    Open quick_2_function_forge.py in PyCharm and press โ–ถ Run. Watch ring_the_bell() get called three times from a single definition.
  2. 2
    Find # TODO #1 โ€” change "Adventurer" and "Unknown" in the announce_hero() call to YOUR name and class.
  3. 3
    Find # TODO #2 โ€” change roll_dice(6) to a different number of sides. Try roll_dice(100)!
  4. 4
    Find # TODO #3 & #4 โ€” the show_power function is ready to fill in. Give it your name and a power level!
  5. 5
    The Spell Duel at the bottom uses the cast_attack() function in a loop โ€” watch heroes trade hits for 5 rounds. Try running it several times!

๐Ÿ‘€ What to Look For in PyCharm

In the Run Console look for:

  • โœ… ring_the_bell() output appearing exactly three times โ€” reuse in action!
  • โœ… Your hero name and class in the announce section
  • โœ… An occasional ๐Ÿ’ฅ CRITICAL hit in the Spell Duel โ€” random chance!

๐ŸŽ‰ One def, unlimited calls = code that works like a spell catalogue!

๐Ÿ† After This Quick Start You'll Know:

def Parameters return Calling functions
Q 3

The Adventure Game ๐Ÿฐ

Learning: if/elif/else & input() โ€” Quick Start Capstone

๐Ÿฐ
โญโญโญโ˜†โ˜† Medium โฑ 35 min โœจ You'll make: A full 3-room text adventure game you can play again and again

๐Ÿ“– The Story

This is your Quick Start capstone โ€” a complete, playable mini text adventure using everything from Quick Starts 1 and 2, plus one new skill: if/elif/else for making decisions. Your hero will explore three rooms, fight enemies, visit a merchant, and face a random final boss. The Python Kingdom needs a champion! โš”๏ธ

๐Ÿ’ก The New Concept: if / elif / else

Python checks conditions top to bottom. The first condition that is True wins โ€” its code block runs, the rest are skipped.

if gold > 100: print("You're rich! ๐Ÿ’ฐ") elif gold > 50: print("Doing okay.") else: print("Broke. Farm goblins.")

๐Ÿ–ฅ๏ธ Do This in PyCharm

  1. 1
    Open quick_3_adventure_game.py. This file uses input() โ€” the game will pause and wait for you to type! Look for the blinking cursor in the Console.
  2. 2
    Press โ–ถ Run. Read the if/elif/else lesson at the top, then enter your hero's name when asked.
  3. 3
    In Room 1 (The Crossroads), type left or right when prompted. Try both paths in separate runs โ€” they lead to different results!
  4. 4
    In Room 2 (The Merchant), type buy or skip. If you have enough gold, a potion heals you before the boss fight.
  5. 5
    In Room 3 (Final Boss), a random boss appears โ€” fight it! Run the game 3 times to see different bosses, rooms, and outcomes.

๐Ÿ‘€ What to Look For in PyCharm

This is a real game โ€” here's what to notice:

  • โœ… The Console pauses at every input() โ€” you're controlling the game!
  • โœ… A different result for left vs right at the Crossroads โ€” if/elif/else working!
  • โœ… A different boss name every run โ€” random.choice() from Quick Start 1
  • โœ… Combat damage printed line by line with short pauses โ€” time.sleep() animation

๐ŸŽ‰ You built a game with 3 skills โ€” Quick Start Track COMPLETE!

๐Ÿ† After This Quick Start You'll Know:

if / elif / else input() def functions random.choice() Game logic

๐Ÿ† Quick Start Complete!

You finished all three Quick Starts โ€” you just built a game with Python! ๐Ÿ

๐ŸŽฒ Dice Roller
๐Ÿ”ฎ Function Forger
๐Ÿฐ Game Builder

Ready to go deeper? Try the Main Track (8 chapters) or the Full Course (11 chapters) โ€” they cover everything from loops to dictionaries to your own full RPG!