Reading from standard input PREMIUM

Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
4 min. read 3 min. video Python 3.8—3.12

Let's talk about how to read from standard input in Python.

Python prints to standard output

When you use Python's print function, you're writing to a file-like object.


A Python Tip Every Week

Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.