Write a program to print numbers from 1 to 20 except multiple of 2 & 3.
# to print numbers from 1 to 20 except multiple of 2 & 3
for x in range(20):
if (x == 2 or x==3):
continue
print(x,end=' ')
print("\n")
Study more about Python at Python Class 10
1.5k questions
1.4k answers
4 comments
11.7k users