print vs. return in Python functions — what's the difference?

Veröffentlicht am: 21 April 2025
auf dem Kanal: Python and Pandas with Reuven Lerner
869
43

Many newcomers to Python don't understand the difference between the value that a function displays on the screen with "print" and its return value — that is, what we get back from a function when we invoke it. In this video, I illustrate the idea of a return value, compare it with printing, and show you why working in a notebook can sometimes make this distinction a bit harder to grasp.


Auf dieser Seite können Sie das Online-Video print vs. return in Python functions — what's the difference? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python and Pandas with Reuven Lerner 21 April 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 869 Mal angesehen und es wurde von 43 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!