We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

If-Else Practice

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 True

Assignment

There is a bug in the check_high_score function! Add the proper 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!