def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10)) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))

plase explain me this code

18th Jun 2019, 12:55 PM
Ranjeet singh jitty
Ranjeet singh jitty - avatar
1 Answer
+ 1
thanks
20th Jun 2019, 3:22 AM
Ranjeet singh jitty
Ranjeet singh jitty - avatar