why does this prog return None? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st Mar 2018, 1:07 PM
Oma Falk
Oma Falk - avatar
4 Answers
+ 20
left you a comment on the code... 😃
2nd Apr 2018, 4:12 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 4
before none it prints l1 and l2 correctly. put then it thinks it is none
31st Mar 2018, 1:23 PM
Oma Falk
Oma Falk - avatar
+ 3
There's no need to print out the final result of the sumit function, as you are already printing within the function itself, therefore: Change: print(sumit([],ip)) to: sumit([],ip)
2nd Apr 2018, 1:29 AM
Emma
0
because var is = () it means nothing is printing
27th Apr 2018, 6:15 AM
Jamaluddin Huseinkhail
Jamaluddin Huseinkhail - avatar