Return three value : Function Return « Function « Python






Return three value

Return three value

def func(x, y, z): return x + y + z

print func(2, 3, 4)


f = lambda x, y, z: x + y + z

print f(2, 3, 4)

           
       








Related examples in the same category

1.Define function: return int value Define function: return int value
2.Return more than one parametersReturn more than one parameters
3.A Simple function definition: return a tuple.A Simple function definition: return a tuple.
4.Save function result into a variableSave function result into a variable