Q&A Discussions
def add(x, y):
return x + y
def do_twice(func, x, y):
return func(func(x, y), func(x, y))
a = 5
b = 10
print(do_twice(add, a, b))
Please explain step by step
Which is caller here?
Explain the 3rd and 4th line ?
why in 4th line we write add(add(x,y),add(x,y)) which is function of 1st line ?
how can we write function after return statement insted of (x+y+x+y )=30?
0 Votes
2 AnswersHot today
Tic tak toe
1 Votes
Lesson on Robotics
1 Votes
Hyperlink and tests
0 Votes
Inner .html
0 Votes
About this app
1 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
How to Claim it
0 Votes
Ha
0 Votes
Mazen
0 Votes