Jump to content

Function definition: Difference between revisions

Python
No edit summary
(Python)
Line 29:
return $a * $b;
}
 
=={{header|Python}}==
[[Category:Python]]
 
Named function:
def multiply(a, b):
return a * b
 
Unnamed function:
multiply = lambda a, b: a * b
 
=={{header|Toka}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.