0
What is the meaning of 'return'. that is an other command of print?
1 Réponse
0
Nope. They are completly different.
'Print' shows a value (which comes from a constant, a string literal, a variable or a function) on the std output.
While 'return' retrieves a value from inside of a function and makes it available outside of it. This value can be considered as the result of the function. You will store it in a variable most of the time (and sometimes print of course).