← Quiz: Python Operators and Input: all 14 questions
Quiz: Python Operators and Input · Question 2 of 14
What does input() return when the user types 25?
What does input() return when the user types 25?
- A.the integer 25
- B.the string "25"
- C.the float 25.0
- D.None
Answer & explanation
Correct answer: the string "25"
input() always returns a string. Use int(input()) to get a number.
Can you get the rest right without peeking?
Take the timed Quiz: Python Operators and Input quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →