C-16-Q074mediumsingle_mcq
After z = str(3.0), the value of z is:
After z = str(3.0), the value of z is:
- a
3(an int) - b
'3.0'(a string) - c3.0 (a float)
- derror
ব্যাখ্যা
str() turns the float 3.0 into its textual representation, which preserves the decimal part as '3.0'. The output is a string, not the numeric float, so it carries the same characters that would be printed for that float.