C-16-Q079mediumsingle_mcq
Given:
test_input = input()
print(type(test_input))
If the user types 25, the printed type will be:
Given:
test_input = input()
print(type(test_input))
If the user types 25, the printed type will be:
- aint
- bfloat
- cstr
- dbool
ব্যাখ্যা
Even though 25 looks like a number, input() captures it as the string '25', so type(test_input) reports str. Python does not automatically convert typed digits into an integer.