teration_list = list(range(0, n+1)) code example
Example 1: range in python
#range(start,stop,step)
for x in range(0,20,2):
print(x)
Example 2: find the range in python
def find_range(n):
lowest = min(n)
highest = max(n)
# Find the range
r = highest - lowest
return lowest, highest, r
# src : Doing Math With Python