0

Help

what does the return function do. for example- def multiply (x,y) return x*y here we have two line. what does the second line do.

2nd Jan 2017, 7:16 PM
stephen haokip
stephen haokip - avatar
4 Answers
+ 5
It returns the multiple of its passed in arguments as follows: >>>def multiply(x, y): return x * y >>>multiply(5, 10) >>>50
2nd Jan 2017, 9:49 PM
Given
Given - avatar
0
The return STATEMENT stops the execution of the function's body and returns the result of the expression inside the caller's local context.
2nd Jan 2017, 8:43 PM
Amaras A
Amaras A - avatar
0
va imprimir la multiplicaciĂłn de dos nĂșmeros
21st Jan 2017, 2:01 AM
Padre