+ 1

Pls explain this code{python}

Pls can u explain this code ..why it didn't print adding value? https://code.sololearn.com/c8T00QEla6lQ/?ref=app

2nd Jul 2019, 8:12 PM
Pranav Sagar
Pranav Sagar - avatar
3 Réponses
+ 5
first, change the print on line 14 to add_num_deco. then either wrap the f(i, j) on line 7 in a print. (recommended). or change the return on line 13 to a print. (not recommended).
3rd Jul 2019, 1:48 PM
LONGTIE👔
LONGTIE👔 - avatar
0
because you indented the print(add_num(5,6)) on line 14, the interpreter puts it in the add_num function.
2nd Jul 2019, 9:37 PM
LONGTIE👔
LONGTIE👔 - avatar
0
LONGTIE👔 okay! I edited this code and now line 14 isn't intended . but Still not working .. it's printing none!
3rd Jul 2019, 6:50 AM
Pranav Sagar
Pranav Sagar - avatar