C-16-Q080mediumsingle_mcq
To make input() return an integer instead of a string, we use:
To make input() return an integer instead of a string, we use:
- a
int(input()) - b
input(int) - c
int.input() - d
input::int
ব্যাখ্যা
Wrapping the call as int(input()) first reads the user's input as a string, then converts it to an integer. This nesting passes the returned string directly into int() for conversion.