Cursos
Fazer loginComeçar a aprender IA
Cursos
Fazer loginComeçar a aprender IA

Q&A Discussões

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?
python
0 Voto
2 Respostas
29th Jul 2016, 7:22 PM
Rupam Das
Rupam Das - avatar
< Anterior1...451452Próximo >
Quente hoje
Ai generated practices
2 Votes
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
0 Votes
Solving coding challenges
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Changing String Variables into int in C++
0 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
How can i insert files?
1 Votes
Fill in the blank to declare a static variable.
0 Votes