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