The weather box holds rain and the coins box holds seven. Which condition is false?
🔤coins >= 8🔤weather = "rain"🔤coins == 7
6
Which idea about if and else is not true?
❓if runs its lines only when the condition is true🟰two equals signs ask whether two things are equal♾️if runs its lines every time
7
Which idea about if and else is true?
❓if runs its lines only when the condition is trueone equals sign asks if two things are equal♾️if runs its lines every time
8
The weather box holds rain and the coins box holds seven. Which condition has a bug?
🔤weather == rain🔤coins == 7🔤weather != "rain"
9
Is it true that one equals sign asks if two things are equal?
YesNo
10
Which idea about if and else is true?
♾️if runs its lines every time↪️else runs when the condition is falseone equals sign asks if two things are equal
11
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤coins == 7🔤weather != "rain"🔤weather == "sun"
12
The weather box holds rain and the coins box holds seven. Which condition is true?
🔤coins > 5🔤weather != "rain"🔤weather = "rain"
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 B
If in Python
1coins < 5
2pushing lines in is only to look neat
3weather != "rain"
4weather != "sun"
5coins >= 8
6if runs its lines every time
7if runs its lines only when the condition is true
8weather == rain
9No
10else runs when the condition is false
11coins == 7
12coins > 5
Mark each answer, count the right ones and write the score on the sheet.