Python Development Course
Chapter
>
Level

Variables and Types
String Variables

Objective

Pick up all three items, store them in individual variables, open the chests to place each variable in their own container and close them to complete the level.

Store the 3 different harvests in a bag and put them away.

There are 3 items, a “Pumpkin”, an “Eggplant” and a “Tomato”. You must collect them and store them in their own bag by using variables.

Create 3 variables named: bag1, bag2, bag3. Each bag must contain one of the 3 items. Example: bag1 = “Pumpkin” . Do this for all 3 items in each of the 3 bags, then place the the bags in each of the 3 chests.

Walk over to each X mark in front of each chest and place the bags in each chest. Do this by using the open() function to open the chest, then using the place() function to store each bag, like this: player.place(bag1) .

After you’re done placing a bag close the chest using the close() function, do this process for all 3 items.

Code book