for i in (list(range(50)) + list(range(51, 100))):
    print(i)
xr = iter(range(100))
for i in xr:
    print(i)
if i == 49:
    next(xr)
for i in range(100):
    if i == 50:
        continue
print(i)
Skip over a value in the range function in python