While loop example in Python

Source code :

i=0
while(i<10):
print(i)
i = i + 1

Output :

0
1
2
3
4
5
6
7
8
9

Output :


                

Comments :