Answers for "determine whether number 1 is odd or even python"

10

how to check if a number is odd python

num = int(input("Enter a number: "))  
if (num % 2) == 0:  
   print("{0} is Even number".format(num))  
else:  
   print("{0} is Odd number".format(num))  
Posted by: Guest on May-21-2020
0

wap in python to check a number is odd or even

num = int(input("Enter a number: "))  
if (num % 2) == 0:  
  print(num ,"is even numbern")  
#CODE BY VENOM STONE
else:  
  print(num,"is Odd numbern")
#CODE BY VENOM STONE
Posted by: Guest on April-11-2021

Code answers related to "determine whether number 1 is odd or even python"

Python Answers by Framework

Browse Popular Code Answers by Language