one equals sign asks if two things are equal🔁else runs when the condition is true➡️the lines pushed in under if belong to the if
11
The weather box holds rain and the coins box holds seven. Which condition is false?
🔤weather = "rain"🔤weather == "rain"🔤coins >= 8
12
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤weather != "rain"🔤coins > 5🔤coins < 5
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set C
If in Python
1else runs when the condition is false
2weather == rain
3else runs when the condition is true
4weather = "rain"
5coins == 7
6pushing lines in is only to look neat
7weather != "sun"
8weather != "rain"
9weather == "sun"
10the lines pushed in under if belong to the if
11coins >= 8
12coins > 5
Mark each answer, count the right ones and write the score on the sheet.