Print all numbers except certain numbers.

In this program, we will print all the numbers except certain numbers.

Steps to solve the program
  1. Use for loop to print all the numbers from 1 to 10.
  2. 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 
				
			

count the number of even and odd numbers from a series of numbers

program to get the Fibonacci series

Leave a Comment