Question
What does a `return` statement do inside a Python function?
Select an option. Your answer will be checked instantly.
Correct Answer: A. It sends a result back to the caller and ends that function call
Explanation:
`return` provides the function’s output to the code that called it. Execution of that function call stops when the return statement is reached.
Leave a Reply