+ 3

How to use return in Python3?

18th Feb 2018, 10:26 AM
Jjjjjjjj
Jjjjjjjj - avatar
2 Antworten
+ 4
We can use "return" to return some result from a function. Example: def add(a, b) # this is a function c = a + b return c d = add(2, 4) # we call the function and store its result print(d) # prints 6
18th Feb 2018, 10:54 AM
Augustinas Lukauskas
Augustinas Lukauskas - avatar
+ 2
Thanks you very much.
18th Feb 2018, 11:01 AM
Jjjjjjjj
Jjjjjjjj - avatar