1print("using start, stop, and step arguments in Python range() function")
2print("Printing All odd numbers between 1 and 10 using range()")
3for i in range(1, 10, 2):
4 print(i, end=', ')
1#Python range() example
2print("Numbers from range 0 to 6")
3for i in range(6):
4 print(i, end=', ')
1
2# i start from 0 going to 4 "5 steps"
3for i in range(5):
4 print(i)
5
6# output
70
81
92
103
114
12