Python Level 2: Variables

Chapter 2: The Magic Inventory
Name:

Date:
Part 1: Stock the Inventory

Look at the Python code on the left. Write the correct Value inside the inventory chest on the right.

wood = 64
wood
speed = 100
speed
hero = "Alex"
hero
Part 2: Good Name or Bad Name?

In Python, variable names have rules! Check the box next to the correct variable names. Cross out the bad ones!

player_score
Player Score
1st_Place
gold_coins
Part 3: The Computer Brain

Follow the code step-by-step. Do the math to find the Final Value.

diamonds = 0
diamonds = diamonds + 5
diamonds = diamonds + 2
Final Value
health = 10
health = health - 1
health = health - 1
Final Value
Part 4: Character Creator

Fill in the blanks to create a Python script for your own game character!

# Create your variables
my_name = ""
money =

# Print the stats
print("Welcome,", my_name)
print("You have", money, "coins")