Question: In Python, what is the primary purpose of the return statement in a function? Group of answer choices It exits the function and returns a
In Python, what is the primary purpose of the "return" statement in a function?
Group of answer choices
It exits the function and returns a value that can be assigned to a variable outside the function
It is used to define a new variable
It is used to create a new function.
It prints a value to the console.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
