Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Python how to check the digits of a number are even code example

Example: 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))

Tags:

Python Example

Related

laravel api ignore csrf code example django syntax code example node sass 4 not compatible 6 code example fill container with image flutter code example material bottom tab navigation react native react navigation code example react Drawer.Navigator open code example how to add all the elements inside of an array code example javascript get element with class code example bootstrap html hamburger menu code example making thread for each process multithreading in python code example defining a tree in python code example python remove directory contents code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy