print vs return: The most common confusion for Python beginners | Ludwig explains

Опубликовано: 06 Июнь 2026
на канале: ludwig explains
13
0

Translation test version — translated using the DeepL API (not natively by LLM) for quality assessment by a native speaker.

If you're just starting to learn Python functions, you've probably already confused `print` and `return`. At first glance, they look almost identical, but they do completely different things. This video gives you a mental model: imagine a function as a box-machine with two output channels.

`print` is the SCREEN attached to the side of the box—it's what people read.
`return` is the WIRE coming out of the box—it's what your program connects to.

Once you see them as two different outputs, the classic beginner trap becomes obvious.

This is an alternative version translated using DeepL, for comparison with the original voiceover.

Subscribe:    / @ludwigexplains  

#Python #LearningPython #LudwigExplains