+ 2

Decorator python

What happens when we return func(a,b) and return inner? Where does the value return to? https://code.sololearn.com/cdhp1F3QKH36/?ref=app

10th Jun 2020, 7:01 AM
Sagar Gupta
Sagar Gupta - avatar
3 ответов
0
Granger but how is it returning the value to div function? What is happening in the back end?
10th Jun 2020, 7:08 AM
Sagar Gupta
Sagar Gupta - avatar
0
Granger but how is it calling the main div function in the end as it is printing the result 2.0?
10th Jun 2020, 7:44 AM
Sagar Gupta
Sagar Gupta - avatar
0
it returns the same value only that you gave it many turns, it would not be easier just to return the value of your division instead of complicating it the answer is 2 allways 2
10th Jun 2020, 4:24 PM
Sidhartha Manríquez
Sidhartha Manríquez - avatar