Advertisements
Advertisements
प्रश्न
State True or False:
In Python, data type of 74 is same as the data type of 74.0.
चूक किंवा बरोबर
Advertisements
उत्तर
This statement is false.
Explanation:
In Python, 74 is an Integer (int) because it is a whole number without a decimal point. On the other hand, 74.0 is a Floating-point number (float) because it contains a decimal point, even though its value is equivalent to an integer.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
