0

One example in while loops i don't understand in solo app for Python. So please tell me. Thanks in advance

i = 3 while i >=0: print(i) i = i - 1 what is the answer???

21st Jan 2017, 9:05 AM
viraj SHAH
viraj SHAH - avatar
4 odpowiedzi
+ 8
last value of "i" will be "-1"
21st Jan 2017, 9:09 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
Output: 3210
21st Jan 2017, 9:09 AM
Valen.H. ~
Valen.H. ~ - avatar
0
my answer is same as yours but in app the answer is 4.
21st Jan 2017, 9:10 AM
viraj SHAH
viraj SHAH - avatar
0
Wait what?
22nd Jan 2017, 1:37 AM
Amaras A
Amaras A - avatar