Currently if I want to iterate 1 through n I would likely use the following method:
1
n
for _ in rang
range(1, n+1) is not considered duplication, but I can see that this might become a hassle if you were going to change 1 to another number.
range(1, n+1)
This removes the duplication using a generator:
for _ in (number+1 for number in range(5)): print(_)