Fucntion | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Fucntion

What is differances between return and print keywords?

14th Oct 2020, 1:00 PM
aryan shahrabi
3 Answers
+ 12
Printing and returning are completely different concepts. print is a function you call. ... When a return statement is reached, Python will stop the execution of the current function, sending a value out to where the function was called. Use return when you want to send a value from one point in your code to another.
14th Oct 2020, 1:08 PM
Si Thu Tun
Si Thu Tun - avatar
+ 1
I'll appreciate all🙏
14th Oct 2020, 8:07 PM
aryan shahrabi