While Loop
The while loop through a block of code as long as a specified
condition is true.
Syntax:
while(condition)
print(i)
Program:
i = 0
while i <
10:
print(i)
i += 1
Output:
0
1
2
3
4
5
6
7
8
9
More topic in Python