+ 5
why does this prog return None?
4 odpowiedzi
+ 20
left you a comment on the code... 😃
+ 4
before none it prints l1 and l2 correctly.
put then it thinks it is none
+ 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)
0
because var is = ()
it means nothing is printing