While Loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

While Loop

Why the answer is 4: i = 3 while i >=0: print(i) i = i-1

10th Aug 2021, 12:24 PM
Mohammad Hasan
Mohammad Hasan - avatar
5 Answers
+ 5
Mohammad Hasan , the question that is raised in the mentioned exercise is: >>>> "how many numbers does this code print"? so the answer is 4 !
10th Aug 2021, 3:20 PM
Lothar
Lothar - avatar
+ 4
The answer is 3 2 1 0 It's not coming 4
10th Aug 2021, 12:39 PM
Nitin Tiwari
Nitin Tiwari - avatar
+ 1
Lothar Ooooooo:| Thank you😊🙏
10th Aug 2021, 3:22 PM
Mohammad Hasan
Mohammad Hasan - avatar
0
Sintayu De Kuiper Nitin Tiwari its in Python for begginers course (While loop)
10th Aug 2021, 2:50 PM
Mohammad Hasan
Mohammad Hasan - avatar
0
Lothar Can you please answer this
10th Aug 2021, 3:19 PM
Mohammad Hasan
Mohammad Hasan - avatar