C-16-Q137mediumsingle_mcq
Given age = 45.50, what does print(type(age)) indicate the type to be?
Given age = 45.50, what does print(type(age)) indicate the type to be?
- aint
- bfloat
- cstr
- dbool
ব্যাখ্যা
The value 45.50 contains a decimal point, so Python stores it as a floating-point number. Therefore type(age) reports the type as float.