0

Question in description pls explain it plss

def addition_function(a,b): a=a+2 b = b +3 result addition_function(5,7) print (result)

10th Apr 2022, 8:08 AM
Javed Iqbal
Javed Iqbal - avatar
2 ответов
+ 1
# your code should be: # thinkable shorter name def add_func(a,b): # do not forget indents # no need for `a=a+2` or `b=b+3` # do not forget to return what you need here: return a+2,b+3 # now assign the result result = sum_func(5,7) # print it print(result)
10th Apr 2022, 12:30 PM
Ervis Meta
Ervis Meta - avatar
+ 1
# or if you don't care about differences s = lambda *x: map(lambda y: int(y)+3,x) print(list(s(5,7)))
10th Apr 2022, 12:36 PM
Ervis Meta
Ervis Meta - avatar