What is the use of keyword 'return' in python?
50 points ✌️
Spam will be reported...
Answers
Answered by
12
Answer:
A return statement is used to end the execution of the function call and “returns” the result (value of the expression following the return keyword) to the caller. The statements after the return statements are not executed. If the return statement is without any expression, then the special value None is returned.
Answered by
0
Answer:
Python return statement
A return statement is used to end the execution of the function call and “returns” the result (value of the expression following the return keyword) to the caller. The statements after the return statements are not executed. If the return statement is without any expression, then the special value None is returned.
Note: Return statement can not be used outside the function.
Similar questions
Math,
5 months ago
Math,
5 months ago
Chemistry,
11 months ago
Science,
11 months ago
CBSE BOARD X,
1 year ago