Python — From Basics to Advanced · First Steps
User Input: input()
First Steps
Introduction
The input() function reads text from the user. Remember: input() ALWAYS returns a string — if you need a number, convert with int() or float(). You will also learn practical patterns: prompts, strip(), split() for multi-value input, and common pitfalls (ValueError, empty input).