for loop range print the last number code example
Example 1: for i in range start
for i in range([start], stop[, step])
Example 2: Range python iterate by 2
for i in range(0,10,2):
print(i)
for i in range([start], stop[, step])
for i in range(0,10,2):
print(i)