Question:

Which of the following expressions in Python evaluates to True?

Show Hint

'and' returns the right operand when the left one is true. Find the option whose result is exactly True.
Updated On: Oct 20, 2026
  • 2>3 and 2<3
  • 3>1 and 2
  • 3>1 and 3>2
  • 3>1 and 3<2
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Recall how 'and' works in Python:
The operator 'and' looks at the left operand first. If it is false, Python returns it. Otherwise Python returns the right operand.
So the result of 'and' is not always True or False. It can be one of the operands.

Step 2: Check option (A) 2>3 and 2<3:
2>3 is False, so the whole expression is False.

Step 3: Check option (B) 3>1 and 2:
3>1 is True, so Python returns the right operand, which is the number 2.
The value 2 is truthy, but the expression evaluates to 2, not to True. So (B) is not correct.

Step 4: Check option (C) 3>1 and 3>2:
3>1 is True and 3>2 is True. The right operand is True, so the result is True.

Step 5: Check option (D) 3>1 and 3<2:
3>1 is True, so Python returns 3<2, which is False.

Final Answer:
Only option (C) evaluates to True.
Was this answer helpful?
0
0