#use for loop and set the range
for index in range(10):
Print (index)
#when you run this program, the output will be:
0
1
2
3
4
5
6
7
8
9