हिंदी

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

Advertisements
Advertisements

प्रश्न

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

2 + 3 == 4 + 5 == 7

एक पंक्ति में उत्तर

उत्तर

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

shaalaa.com
Operators in Python - Relational Operator (>,>=,<=,=,!=)
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Getting Started with Python - Exercise [पृष्ठ ११६]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
अध्याय 5 Getting Started with Python
Exercise | Q 4. b) | पृष्ठ ११६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×