-1
for i in range(0,10):
    if i!= (3 or 7 or 9) :
        print(i)
    else:
        continue

** I want to skip 3 7 and 9 as mentioned code but it remove only 3**.

1 Answers1

0

You can use this code

for i in range(0,10):
    if i!= 3 and i!= 7 and i!=9 :
        print(i)
    else:
        continue