+ 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
6 odpowiedzi
0
Granger but how is it returning the value to div function? What is happening in the back end?
0
Granger but how is it calling the main div function in the end as it is printing the result 2.0?
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