Advertisements
Advertisements
Question
Which data type will be used to represent the following data values and why?
A resident of Delhi or not
Short/Brief Note
Advertisements
Solution
The boolean data type will be used to represent 'Resident of Delhi or not' as a person will be either a resident of Delhi or not a resident of Delhi. Therefore, the values True or False will be sufficient to represent the values.
shaalaa.com
Python Data Types
Is there an error in this question or solution?
