''' Purpose: print integers from a user-specified downward interval n ... m ''' # get interval of interest reply = input( "Enter start and end: " ) n, m = reply.split() # high low n, m = int( n ), int ( m ) # print out integers n down to m for i in range( n , m - 1, -1 ) : print( i ) # By default, if you are looping through a range it will increment by 1. # We have an optional third thing in our range and that's what # we increment by. # Sooo remember how it will go from starting number to everything # up to but not including the ending number # so without the m - 1, if we left it as m, it will go all the way # down to but not including m so if we want m to be printed, we do m-1. # The third thing in the range is just the incrementor. # range(start, end, increment) - increment must be integer!