Answers for "create one function that can check whether the integer number is even or odd number python"

4

how to find if a value is even or odd in python

num = int(input("Enter a Number:"))
if num % 2 == 0:
  print(num , "is even")
else:
  print(num , "is odd")
Posted by: Guest on June-06-2021

Code answers related to "create one function that can check whether the integer number is even or odd number python"

Python Answers by Framework

Browse Popular Code Answers by Language