Can you say how does this code work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you say how does this code work?

def tripler(orig_func): def my_function(orig_val): return(orig_func(orig_val)*3) return(my_function) @tripler def doubler(user_input): return(user_input*2) print(doubler(5))

13th Feb 2020, 5:21 AM
Devrim Polat
Devrim Polat - avatar
2 Answers
+ 4
In fact it doesn't. )
13th Feb 2020, 7:10 AM
::sк::
::sк:: - avatar
0
Now?
13th Feb 2020, 2:10 PM
Devrim Polat
Devrim Polat - avatar