Difference between return statement and print statement in python?
Answers
Answered by
0
Explanation:
It is one of the most widely used functions in all of python. The print() function in Python is a function that outputs to your console window whatever you want to print out.
If something is not working right, you can use the print function to print out what is happening in the program.
return:
The return statement terminates the execution of a function and returns control to the calling function.
Answered by
1
Answer:
The difference between return and print statement in python is that With print() you will display to standard output the value of param1, while with return you will send param1 to the caller.
Similar questions
English,
5 months ago
Computer Science,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago