← Back to videos

stdin, stdout and stderr — what every Python developer needs to know

In this video, we’ll be looking at one of the most important yet underrated topics in Python — the standard input, output and error streams (stdin, stdout, stderr).
You’ll learn how `input()` and `print()` actually work, why errors are output separately, what stream redirection is, and why understanding this topic will come in handy not only in job interviews but also in real-world development.
The video is accompanied by simple diagrams and practical code examples.
If you found the video useful, don’t forget to give it a like and subscribe to the channel. This helps us release new tutorial videos on Python and preparing for technical interviews.

Timestamps:

00:00 Introduction
00:33 What is a stream?
01:50 The three standard streams
02:28 stdin and the input() function ()
04:32 stdout and the print() function
06:20 When it’s better to work with streams directly
06:47 stderr — the error stream
08:50 Redirecting stdout
09:32 Redirecting stdin
10:37 Combining streams
10:50 Key points to remember