CBSE Class 12 Computer Science Question 46 of 120

Review of Python Basics — Question 20

Back to all questions
20
Question

Question 20

Which of the following is a valid relational operator in Python ?

  1. +
  2. **
  3. >
  4. and
Answer

>

Reason — The ">" symbol is a valid relational operator in Python. It checks if the value on the left side is greater than the value on the right side and returns a Boolean result (True or False) accordingly.

The other options provided are:

"+" (plus) is an arithmetic operator used for addition. "**" (double asterisk) is an arithmetic operator used for exponentiation. "and" is a logical operator used for combining conditions in boolean expressions.