Advertisements
Advertisements
प्रश्न
What does the return statement do in a function? Explain with the help of an example.
स्पष्ट कीजिए
Advertisements
उत्तर
The return statement either returns the control to the calling function or returns a value from the called function to the calling function.
def Mul(A,В) :
return A*B:
m = Mul (100,200)
Here, the Mul() function receives A, B, and returns the product of A and B to m.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
