Computer Science, asked by shawn6996, 11 months ago

Difference between return statement and print statement in python?​

Answers

Answered by Anonymous
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 Anonymous
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
Math, 5 months ago