New coding words
conditionifelsecomparelower
Aim: Make the program choose between different actions.
conditionifelsecomparelowerUse if and else to choose advice for sunny or rainy weather.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to try this program.
Ask for a secret word and decide whether the treasure door opens.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to try this program.
Complete these activities in the mini-project editor above. After each change, select Run my code to check your program’s output or drawing.
Select Download my work and save the file as week_8_secret_treasure_door.py. The .py ending tells us that the file contains Python code. Keep this file as a copy of your finished program.

Your answers are checked in this browser and are not submitted.
Finished Week 8?
This progress is saved only in this browser.