:How to Check Even or Odd Number in Python | Python Tutorial

Опубликовано: 23 Сентябрь 2026
на канале: sudip kandel
18
6

In this video, I show you how to check whether a number is Even or Odd using Python.

This is a simple, beginner-friendly tutorial where we use the modulus (%) operator to check the number.

Code:
num = int(input("Enter a number: "))
if num % 2 == 0:
print(f"{num} is Even")
else:
print(f"{num} is Odd")

How to run:
1. Save the code in a .py file
2. Open terminal and run "python filename.py"
3. Enter a number and press Enter

If you found this video helpful, please LIKE, SUBSCRIBE, and leave a COMMENT below!

#python #evenodd #pythontutorial #coding #pythonprojects