C-16-Q082mediumsingle_mcq
To make input() return a float, we wrap it as:
To make input() return a float, we wrap it as:
- a
float[input()] - b
input(float) - c
float(input()) - d
input.float()
ব্যাখ্যা
Writing float(input()) reads the user's input as a string and then converts it to a floating-point number. This is the standard pattern for accepting decimal numeric input.