Computer Science · Python Operator Chaining
During debugging, a student writes the expression: result = a > b > c. According to Python's operator chaining rules, how is this expression evaluated?
- 1Only (b > c) is evaluated, ignoring a
- 2Only (a > b) is evaluated, ignoring c
- 3It is evaluated as (a > b) and (b > c)✓
- 4(a > b) is evaluated first, then the boolean result is compared with c
Correct answer
It is evaluated as (a > b) and (b > c)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Operator Chaining?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Operator Chaining