मराठी

Which data type will be used to represent the following data values and why? Volume of a sphere - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Which data type will be used to represent the following data values and why?

Volume of a sphere

टीपा लिहा

उत्तर

The float data type will be used to represent the 'Volume of a sphere'.

The formula for the volume of a sphere:

Volume of sphere, `"V" = 4/3π"r"^3`

Even if 'r' is a whole number, the value of volume can be a fraction which can be represented in a decimal form easily by float data type.

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 6. (e) | पृष्ठ ११६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×