CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #9

And Versus Or

easyIf Statements

📄 Code

Read carefully — what does this print?
1temp: int = 25
2raining: bool = False
3if temp > 20 and raining:
4 print('warm and wet')
5if temp > 20 or raining:
6 print('at least one')
7if not raining:
8 print('dry')
9if temp > 30 and not raining:
10 print('hot and dry')

🎯 Your Answer