Editor settings

General settings

Save settings

Learn to program with Python

Greater Than Operator #

The greater than operator > is a comparison operator in Python used to check if the left value is greater than the right value. It returns a boolean value True if the left value is greater than the right value, and False otherwise.

For example:

print(5 > 3) # True
print(3 > 5) # False
print(5 > 5) # False

Exercise #

Create a variable greater_than to have a value False by using greater than operator >.

Tests #

  • Variable greater_than should be False
  • Use greater than operator >
Output will be displayed here