English

Add a pair of parentheses to the expression so that it evaluates to True. 0 == 1 == 2

Advertisements
Advertisements

Question

Add a pair of parentheses to the expression so that it evaluates to True.

0 == 1 == 2

One Line Answer
Advertisements

Solution

(0 == (1==2))

shaalaa.com
Relational Operator (>,>=,<=,=,!=)
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 116]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 5 Getting Started with Python
Exercise | Q 4. a) | Page 116
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×