[Tutor] when to use "return" or "print"

ScribusP ScribusP at gmx.de
Tue Sep 29 03:44:57 EDT 2020


Hello all,

even tho some people are saying, that I am too unhealthy and too old to
learn programming, I am enjoying, how I can do useful tasks with only a
few lines of Python code.

I also like the easy code reading and the mass of problem solutions that
are available.

But at the moment I am stuck with the question, when it is best to use
"return" and when it is best to use "print". Could you give me some
examples, please?


friendly greetings,

P.



More information about the Tutor mailing list