Answers for "python code for even numbers"

8

program to find even numbers in python

m = int(input("Enter number"))
if m % 2 == 0:
    print(m,"is an even number")
else:
    print(m,"is an odd number")
Posted by: Guest on July-24-2020
1

python for loop even numbers

for i in range(2,11,2): # range(start, end, step)
  print(i)
Posted by: Guest on May-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language