Name the six relational operators use in Python

1 answer

In Python, the six relational (or comparison) operators are:

  1. Equal to: ==
  2. Not equal to: !=
  3. Greater than: >
  4. Less than: <
  5. Greater than or equal to: >=
  6. Less than or equal to: <=

These operators are used to compare two values and return a Boolean result (True or False).