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

Comparison Operator Evaluations

When a comparison happens, the result of the comparison is just a boolean value, it's either True or False.

Take the following two examples:

is_bigger = 5 > 4
is_bigger = True

In both of the above cases, we're creating a Boolean variable called is_bigger with a value of True.

Because 5 is greater than 4, is_bigger is assigned the value of True.

Assignment

Create the following variables. Use comparison operators to determine their boolean values. The context of the variable names should tell you which variables to compare for equality (using ==). Return them in this order:

  1. is_mustang_edward_same
  2. is_alphonse_edward_same
  3. is_winry_alphonse_same