English

Which data type will be used to represent the following data values and why? Pocket money - Computer Science (Python)

Advertisements
Advertisements

Question

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

Pocket money

One Line Answer

Solution

The float data type will be used to represent 'Pocket money' as it can be in decimal. e.g Rs. 250.50 i.e 250 rupees and 50 paise.

shaalaa.com
Python Data Types
  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 6. d) | Page 116
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×