C-16-Q068mediumsingle_mcq
After x = float(1), the value of x is:
After x = float(1), the value of x is:
- a1
- b1.0
- c'1.0'
- dTrue
ব্যাখ্যা
float(1) converts the integer 1 into a floating-point number, which is displayed with a decimal point as 1.0. The numeric magnitude stays the same but the type becomes float.