Which function is used to take input from the user in Python?
-
A
print()
-
B
input()
Correct answer
-
C
scanf()
-
D
get()
Correct answer
B. input()
10 views
Explanation
input() reads a string from the user. Source: NBF StudyHub, Chapter 1, Q3.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ