can any one explain this the code is in python3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can any one explain this the code is in python3

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))

28th May 2020, 7:57 AM
DINESH KUMAR REDDY TIKKAM
DINESH KUMAR REDDY TIKKAM - avatar
1 Answer
+ 1
Ya I will explain but I think you will get more information from here Just check out the 3rd and 4th comment that will help you Click on this link - https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2437/ Rock the code🤟🤟
28th May 2020, 8:03 AM
Piyush
Piyush - avatar