0

What's the problem in running this code???

https://code.sololearn.com/cNNNB1KauLpX/?ref=app

14th Apr 2020, 6:29 PM
Soumya Singh
Soumya Singh - avatar
2 Réponses
+ 2
you pass 3 parameters instead of 2 in the func function which is in the do_thrice
14th Apr 2020, 6:41 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
line 5 return func(func(x, y), func(x, y), func(x, y)) the first call of func has 3 arguments, but you called 'do_thrice' with the add function which has only two parameters: that's the problem. you can solve it by returning func(func(x, y), func(x, y)) which will also call func thrice.
14th Apr 2020, 6:45 PM
John Robotane
John Robotane - avatar