Computer Science, asked by karanjotgaidu, 11 months ago

\huge\underline\bold\color{red}\mathfrak{Question}

What is the use of keyword 'return' in python?

50 points ✌️

Spam will be reported... ​

Answers

Answered by xxDevilQueenxx64
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 hmnagaraja3
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