Differ between return statement and print() statement in python.
Answers
Answered by
1
Answer:
The return statement returns with a value from a function. return without an expression argument returns None. Falling off the end of a function also returns None. With print() you will display to standard output the value of param1 , while with return you will send param1 to the caller.
Similar questions