पायथन फंक्शन रिटर्न वैल्यू
वापसी मूल्य
किसी फ़ंक्शन को एक मान वापस करने के लिए, return
कथन का उपयोग करें:
उदाहरण
def my_function(x):
return 5 * x
print(my_function(3))
print(my_function(5))
print(my_function(9))
किसी फ़ंक्शन को एक मान वापस करने के लिए, return
कथन का उपयोग करें:
def my_function(x):
return 5 * x
print(my_function(3))
print(my_function(5))
print(my_function(9))