What does input() return in Python?
- Nothing
- Always an integer
- A float if you type a decimal
- 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