C-16-Q148mediumsingle_mcq
Why is it useful to print the variable name with a comment-style prompt in input() (e.g., input('Insert an integer number:'))?
Why is it useful to print the variable name with a comment-style prompt in input() (e.g., input('Insert an integer number:'))?
- aIt silences the prompt
- bIt tells the user what kind of input is expected
- cIt changes the input data type to int
- dIt restarts the program
ব্যাখ্যা
A prompt message inside input() is displayed to the user, telling them what kind of value to enter. This guides correct input but does not change the data type, which remains a string.