English

Write a logical expression corresponding to the following statement in Python and evaluate the expressions (assuming variables num1, num2, num3, first, middle, and last - Computer Science (Python)

Advertisements
Advertisements

Question

Write a logical expression corresponding to the following statement in Python and evaluate the expressions (assuming variables num1, num2, num3, first, middle, and last are already having meaningful values):

The sum of 20 and –10 is less than 12.

One Line Answer
Advertisements

Solution

(20 + (-10)) < 12
shaalaa.com
Operators - Arithmetic Operators (-,+,*,/,%)
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 115]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×