Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 4)
4.
What is the purpose of the return statement in a function?
Prints a value to the console
Terminates the program
Exits the function and returns a value
Declares a variable
Answer: Option
Explanation:
The return statement is used to exit a function and return a value to the caller.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.