🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.the integer 25
  2. B.the string "25"
  3. C.the float 25.0
  4. 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 →