Skip to content

Glossary: Python Basics

input()

Also written: input

A built-in function that shows a message, waits for the user to type and press Enter, and gives back what they typed. It always returns text, so convert it with `int()` or `float()` for math.

Where the book teaches it