+ 4
What does the return statement in python do?
4 Answers
+ 1
def sumwithreturn(x,y):
return (x+y)
def sumwithoutreturn(x,y):
print(x+y)
print(sumwithreturn(5,10))
print(sumwithoutreturn(5,10))
run this you will get to know
+ 3
ok thanks đ
+ 3
it basically do two thing when include in function....
1.Store output to function.
2 Terminate other code after return.
+ 2
Thq