n = int(input("Enter the any Number : "))

if n % 2 == 0:
    print("Given Number is Even")
    print("Given Number is Odd")

Enter the any Number : 34
Given Number is Even


Take input from the user, and check

if n % 2 == 0 , n is divisible by 2 completely then print "Given Number is Even" Otherwise

print "Given Number is Odd"


Login is mandatory to comment Please login

Recommended Posts

Diet Exercise Management System in Python

In this tutorial we write a management system which maintain the diet and exercise of the user.

Find the greatest number given three number by user in python programming

Write a program to check that given three number is by user in Python Programming language.

Calculate the area of circle in Python Programming

In this tutorial, we will learn all about the circle ( area, circumference ) with all types of method. Inbuild Methods, function, simple so on.

leap year in python

The year which has 366 days is called a leap year. This additional day is added in february which makes it 29 days long.

Fibonacci Series | Fibonacci Sequence in Python

Fibonacci numbers ( series ) is a set of numbers that start with 1 or 0 followed by a 1 proceeds on the rule that each number.

Find maximum of two number in python programming language

Maximum of two number in Python - Using max() function , Using if else statement, Using Ternary operator and Using Lambda function.