What does input() return in Python?

  1. Nothing
  2. Always an integer
  3. A float if you type a decimal
  4. Always a string
Answer

D) Always a string

Convert it if you need a number, e.g. int(input()). SLO CS-11-C-02 · Understanding

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise