Input and Types
Input and Types: Asking for Input, and Converting Types.
Updated
- Asking for Input, and Converting Types (Apprentice): input() asks a question in the terminal and always hands back the answer as text, so a program turns typed numbers into numbers with int() or float() (and numbers into text with str()), checks a value's type with type(), and stops with a ValueError when the text isn't a number.