how does this give output 4? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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