English

Add a pair of parentheses to the expression so that it evaluates to True. 2 + 3 == 4 + 5 == 7 - Computer Science (Python)

Advertisements
Advertisements

Question

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

2 + 3 == 4 + 5 == 7

One Line Answer
Advertisements

Solution

(2 + (3 == 4) + 5) == 7

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. b) | Page 116
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×