Which of the following options is not a valid relational (comparison) operator…
2026
Which of the following options is not a valid relational (comparison) operator in Python?
- A.
!=
- B.
<=
- C.
==
- D.
=>
Attempted by 866 students.
Show answer & explanation
Correct answer: D
The correct answer is Option D (=>).
In Python, valid relational (comparison) operators are:
==, !=, >, <, >=, <=
The operator => is not valid in Python. The correct symbol for “greater than or equal to” is >=, not =>.
Thus, Option D is not a valid relational operator.