What is the purpose of the 'input' function?
-
A
Display information on the console
-
B
Take user input from the console
Correct answer
-
C
Perform complex calculations
-
D
Print the program output
Correct answer
B. Take user input from the console
17 views
Explanation
The 'input' function is used to take user input from the console, allowing for dynamic interaction with the program during runtime.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ