+ 1
Guys what's wrong with my code?
x = 0 while x <= 10: if x % 2==0: print(x) x += 1
2 Réponses
+ 3
Space
x += 1 should be outside of if- statement
if x % 2==0:
print(x)
x += 1
+ 7
x = 0
while x <= 10:
if x % 2==0:
print(x)
x += 1