Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
4th Question
0 głosów
2 odpowiedziThe 4th Creator Master
7 głosów
1 Odpowiedź2D Map 4th test case failed
0 głosów
2 odpowiedzidef 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 głosów
2 odpowiedziPopularne dzisiaj
heart issues
3 Votes
Array
1 Votes
C? C++? C#? Horses for courses?
0 Votes
Download
1 Votes
User code bits
1 Votes