MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a Python Program to Check if a Number is Odd or Even.

  1. Home
  2. Python Programs

Write a Python Program to Check if a Number is Odd or Even.

Write a Python Program to Check if a Number is Odd or Even.

Program
def myfun():
    num=int(input("Enter a number: "))
    if(x%2==0):
        print("This is a even number")
    else:
        print("This is a odd number")
        
if __name__=="__main__":
    myfun()


Output:

Enter a number: 28
This is a even number



More Questions


63 . Write a Python Program to Check if a Number is Positive, Negative or Zero.
64 . Write a Python Program to Check if a Number is Odd or Even.
65 . Write a Python Program to Check Leap Year.
66 . Write a Python Program to Check Prime Number.
67 . Write a Python Program to Print all Prime Numbers in an Interval of 1-10.
68 . Write a Python Program to Find the Factorial of a Number.
69 . Write a Python Program to Display the multiplication Table.
70 . Write a Python Program to Print the Fibonacci sequence.
71 . Write a Python Program to Check Armstrong Number?
72 . Write a Python Program to Find Armstrong Number in an Interval.
73 . Write a Python Program to Find the Sum of Natural Numbers.



For latest job updates join Telegram Channel: https://t.me/sateeshm

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to print the sum of two numbers

Write a Java program to compare two numbers

Write a Java Program to find largest and second largest in an array

Write a Java Program to find Armstrong number

Write a Java program to display the system time

Python Practice Programs

Write a python program to Find Index Using Enumerate

Write a Python program to calculate the number of days between two dates.

Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.

Write a Python Program to check armstrong number of n digits

Print out a set containing all the colors from a list which are not present in other list

Java Quiz

Java Quiz - 10

Java Quiz - 11

Java Quiz - 7

Java Quiz - 15

Java Quiz - 4

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
New Updates
MSK Technologies
© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs