Advertisements
Advertisements
Question
State True or False:
In Python, data type of 74 is same as the data type of 74.0.
True or False
Advertisements
Solution
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
Is there an error in this question or solution?
