+ 1
a = [i for i in range(8)] print(a) for i in a: a.remove(i) print(i) print (sum(a))
Here the second for print only even number why is that .
3 Antworten
+ 1
~ swim ~ I know the answer its 16
I printed after every remove it shows only odd no. But I don't know why?