Discussions Q&R
4th Question
 0 Vote
 2 RéponsesHappy 4th of July!
 2 Votes
 1 RéponseThe 4th Creator Master
 7 Votes
 1 Réponsedef 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 Vote
 2 RéponsesAujourd'hui en vedette
How create a new language ?
 1 Votes
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Project
 0 Votes