0

Problem in function.

Can you explain this code with another easy example? I dont uderstand it. https://code.sololearn.com/cyWQLJwenH4O/?ref=app

30th May 2021, 12:01 PM
Aayush Jat
Aayush Jat - avatar
2 Respostas
+ 3
in do_twice you pass the add function, so what happens is this: add(add(5, 10), add(5, 10)) which is add(15, 15)
30th May 2021, 12:08 PM
Lisa
Lisa - avatar
0
If you are using return you have to use if statement before return.
30th May 2021, 12:13 PM
Sooraj K Sunu
Sooraj K Sunu - avatar