C-16-Q070mediumsingle_mcq
After z = float("3"), the value of z is:
After z = float("3"), the value of z is:
- a3
- b3.0
- c'3'
- derror
ব্যাখ্যা
float() converts its argument to a floating-point number, and the string "3" represents a valid numeric value. The result is the float , which Python displays with a decimal point rather than as the integer 3.