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

12th Sep 2017, 10:49 PM
Joelsays
Joelsays - avatar
3 odpowiedzi
+ 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.
12th Sep 2017, 10:59 PM
Arthur Tripp
Arthur Tripp - avatar
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
12th Sep 2017, 11:18 PM
Joelsays
Joelsays - avatar