In this lesson, we'll learn about comparison operators in python. Comparison operators are used to compare two values and return a boolean value in the console. Below are a list of comparison operators.
== Equal to
!= Not equal to
> Greater than
< Less than
>= Greater than or equal to
>= Less than or equal to
Here is an example
Input:
x = 5 print(x == 5)
Output:
True