Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Write a conditional statement to check if a number is positive, negative, or zero.
Check the number against zero.
What keyword is used to introduce an alternative action if the 'if' condition is false?
It's a direct follow-up to the 'if' statement.
What is the purpose of a conditional statement?
Think about how we decide the flow based on conditions.
True or False: An 'elif' statement can be used to check multiple conditions.
Recall how 'elif' extends the 'if' structure.
Create a full program that personalizes birthday messages based on the user's birth month.
Consider a switch-case style logic in your if-else scenarios.
Write a game dialogue that changes based on the player's choice of action.
Think about multiple outcomes based on 'if', 'elif', and 'else'.
5 more questions in this section. Enroll free to practise them all.
Enroll free