0
In python, what is the difference between "return " and "print" and when is each of them relevant?
I have tried to understand their differences but it's difficult
3 Réponses
+ 1
I think this guy explains it well
https://stackoverflow.com/questions/7129285/why-would-you-use-the-return-statement-in-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 4
All print does is display to the console. You use return to get output from a function. When you learn more about functional programming in the course return will make more sense.
0
thank you very much, please are you on any social media? I'd really like to keep in touch in case I've got other questions