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?

  1. A.

    !=

  2. B.

    <=

  3. C.

    ==

  4. 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.

Explore the full course: Rssb Senior Computer Instructor