how does this give output 4? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how does this give output 4?

i = 3 while i>=0: print(i) i = i - 1

27th Oct 2020, 6:01 AM
soham khed
soham khed - avatar
1 Answer
+ 5
Hey your output will be: 3 2 1 0 If you want output as 4... Keep i = 4
27th Oct 2020, 6:09 AM
Aayush-droid ★★★
Aayush-droid ★★★ - avatar