Quiz on Python User Input



1. What function is used to read a line of input from the user in Python?
2. What type of value does the input() function return?
3. Which of the following is a way to prompt the user for input?
4. How can you convert a string input into an integer?
5. What happens if you input a non-numeric value when converting to an integer?

Advertisements