range function in python

#this is the range() function
for a in range(7,1,-2): # range(start, stop, step)
                        #here 7 is maximum possible number
 print(a, end=", ")     #1 is minimum possible number but won't be included
                        # -2 is common diffrence between them
output:
7, 5, 3, 
+-+--++-+-+-+-+-+-+--++-+--+-++-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+--+

Here is what the above code is Doing:
1. It’s creating a list of numbers from 7 to 1, skipping every other number.
2. It’s printing the list of numbers, separating each number with a comma.
3. It’s printing the list of numbers on the same line.
4. It’s printing the list of numbers in reverse order.