+ 1

That's odd..

Can anybody tell me what's the problem with this code in "that's odd.." coadcoach. It wants to sum only the even numbers that user gives us a=[] for i in range(10): b=int(input()) b.append(a()) if i%2==0: sum=+i #elif i%2==0: #continue print (sum )

29th Oct 2020, 8:45 AM
tara
tara - avatar
1 Odpowiedź
+ 5
Copy paste it in code playground and then share it here, because right now I can see serious indentation problems with your code.
29th Oct 2020, 8:47 AM
Arsenic
Arsenic - avatar