Program to print odd and even numbers in python

 #print even numbers in a given sequence

numbers = [10,20,30,40,50,60,70,80,90,100]

for num in numbers:

  if num %2 == 0:

    print(num, "is an even number" )


Try running code in python and check the output.

Comments

Popular posts from this blog

How to create a set in python

How to add comments in python ?