for i in range(10): if not i % 2 == 0: print(i+1) code example Example: for i in range(0): print(i) for i in range(0): print(i)