how does this give output 4? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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