0
I would value an advice on the while loop. When i am in the loop i=i+1 i=1 while i<=0 i can't make up why 1 appears on screen?
while loop
2 Réponses
0
i dont under stand whatyou want
you should write the code like this
i = -1
while i <= 1:
print i
i += 1
output will be below
-1
0
0
to output 1
change your code in while i<=0 to i>=0.