answered 6 years ago
Is that all you want?
One way to do that.
for k in range(9): if k != 3: if k != 4: print(k) else: pass else: print(20) # i want to skip the next iteration