मराठी

Give the output of the following when num1 = 4, num2 = 3, num3 = 2. print(4.00 / (2.0 + 2.0)) - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Give the output of the following when num1 = 4, num2 = 3, num3 = 2.

print(4.00 / (2.0 + 2.0))

टीपा लिहा

उत्तर

print(4.00 / (2.0 + 2.0))

The numbers written in the statement are in float data type therefore, the output will be also in float data type.

print(4.00 / (2.0 + 2.0))

print(4.0 / 4.0)

1.0

Therefore, the output will be 1.0.

shaalaa.com
Python Data Types
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Getting Started with Python - Exercise [पृष्ठ ११७]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
पाठ 5 Getting Started with Python
Exercise | Q 7. e) | पृष्ठ ११७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×