

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Comparison Operators
incomplete
2: Comparison Operator Evaluations
incomplete
3: Comparison Practice
incomplete
4: If Statements
incomplete
5: If Practice
incomplete
6: If-Else
incomplete
7: If-Else Practice
incomplete
8: If-Else Practice
incomplete
9: Boolean Logic
incomplete
10: Boolean Quiz
incomplete
11: Early Returns
incomplete
12: Mount Rental
incomplete
13: Combat Advantage
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Here are some basic rules with if/else blocks.
You can't have an elif or an else without an if
You can have an else without an elif
Remember, to check if two values are the same use the == operator.
are_equal = 5 == 6
# are_equal is False
are_equal = 6 == 6
# are_equal is TrueThere is a bug in check_high_score: it always returns the same string, regardless of the inputs! Change the conditional statement to fix the bug.
If the names match, return the string:
You are the highest scoring player!Otherwise, return:
You are not the highest scoring player!