135k views
4 votes
Which built-in function can be used to read input that has been typed on the keyboard?

a) read()
b) input()
c) getInput()
d) keyboard()

User Alyaxey
by
8.3k points

1 Answer

2 votes

Final answer:

The built-in function that can be used to read input typed on the keyboard in Python is the input() function.

Step-by-step explanation:

The built-in function that can be used to read input typed on the keyboard in Python is the input() function. It is used to read a line of text from the console and returns it as a string. The input() function can be used to prompt the user for input and store the input value in a variable for further processing.

User Trang
by
7.7k points