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>>> def range1(start, end):
2... return range(start, end+1)
3...
4>>> range1(1, 10)
5[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]