In this program, we will print all the numbers except certain numbers.
Steps to solve the program
- Use for loop to print all the numbers from 1 to 10.
- If the number is not equal to 3 or 6 only then print the number.
for i in range(0,11):
if i != 3 or i != 6:
print(i,end=" ")
Output :
0 1 2 4 5 7 8 9 10