You've learned how if
statements work with conditions that evaluate to True
or False
. Now let's practice writing and reading these basic decision-making structures.
Engagement Message
Ready to strengthen your conditional skills?
Type
Fill In The Blanks
Markdown With Blanks
Fill in the blanks to create an if statement that checks if a player's score is above 100:
Suggested Answers
- if
-
- ==
- <
- while
Type
Multiple Choice
Practice Question
Which of these conditions will make the code inside the if
block run?
A. The condition is True, so the code runs B. The condition is False, so the code doesn't run C. The condition is neither True nor False D. The code always runs regardless of the condition
Suggested Answers
- A - Correct
- B
- C
- D
Type
