KnowledgeBoat Logo

Computer Science

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

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

Python Data Handling

1 Like

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.

Answered By

3 Likes


Related Questions