+ 3
x = 0 while x <= 20: print (x) x += 2
4 ответов
+ 16
Indentation matters in python:
x = 0
while x <= 20:
print(x)
x += 2
+ 1
@Mayor2k as far as I am aware that should not break the code and the spaces make it easier to read. @Zen you need to indent everything after the colon for it to be in that count controlled loop.
0
используй табуляцию, для определения блоков
0
x = 0;
while (x < 20):
print(x)
x = x+5