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_thanshould beFalse - Use greater than operator
>
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules