Python return statement
Python return statement
A return statement is used for end the execution and return the result to the caller. after the return, statement are not executed.Let’s see an example of it.
Example :-
- def sum(x,y):
- return(x+y)
- print(sum(4,5))
Comments
Post a Comment