Python Development Course
Chapter
>
Level

Variables and Types
Number Variables

Objective

Collect planks and bricks and store into variables in order to complete level.

The storehouse is a mess, help pick up all these bricks and planks scattered about.

To store materials easier you need to use variables, a variable is a name you can assign an object or a group of objects which you can use to more easily address them later on.

After collecting all materials, write a variable named “planks” and the number of planks you’ve gathered. Do the same thing for bricks, and write them like this:

planks = (number of planks picked up)

bricks = (number of bricks picked up)

Remember, the number you assign is the number of each you’ve picked up, this is done after you’ve picked up all planks and bricks.

Code book