C-16-Q078mediumsingle_mcq
By default, input() always returns the user's data as the data type:
By default, input() always returns the user's data as the data type:
- aint
- bfloat
- cstr (string)
- dbool
ব্যাখ্যা
Regardless of what the user types, input() always returns the data as a str (string). Any numeric use therefore requires an explicit conversion such as int() or float().