The greater than operator (>) compares the values of two numbers.
If the number to the left is greater than the number to the right, it returns True.
Otherwise, it returns False.
- https://docs.python.org/3/reference/expressions.html#comparisons
- https://docs.python.org/3/reference/expressions.html#value-comparisons
- https://docs.python.org/3/library/operator.html#mapping-operators-to-functions
- https://docs.python.org/3/library/operator.html#operator.gt
>>> a = 7
>>> b = 17
>>> a > b
False
>>> b > a
True
>>> b > 10
True
Instructions:
Time to fill in the blanks!
In the console, there is a function named strictly_greater_than() that has an if-elif-else statement.
In the lines with the 'if' and 'elif' clauses, fill in the greater than operator and the appropriate values to make the function run properly.