Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

range function

#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, 
+-+--++-+-+-+-+-+-+--++-+--+-++-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+--+
 
PREVIOUS NEXT
Tagged: #range #function
ADD COMMENT
Topic
Name
9+9 =