Write a Python program that prints all the numbers from 0 to 6 except 3 and 6


Topic: Write a Python program that prints all the numbers from 0 to 6 except 3 and 6

Solution

for x in range(6):
if (x == 3 or x==6):
continue
print(x,end=' ')
print("\n")



List all Python Programs