Python Example Program to Check if a Number is Even or Odd ( User Input )

preview_player
Показать описание
In this tutorial you will learn to write a Python Program to Check if a Number is Even or Odd.

First we ask the user to enter a number and we store that in a variable.
Then we divide that number by 2 and we check for the remainder value.
if the remainder is 0 then it means that the number is even, else the number is odd,
Finally we display the result on the screen.

our Social Media Pages

Our Website

#PythonProgramming #ExampleProgram
Рекомендации по теме
Комментарии
Автор

in the end how you mentioned dislike the video if you didnt like it, this video was exactly what it had to be straight to the point and clearly explained for everyone even people who have never seen code before
you got a new subscriber

darthvitiate
Автор

wonderful video has cleared all my doubts on this even and odd number am literally thanking you more than a hundred times for this wonderful you :D

jananjaymedhi
Автор

well detailed explanation....thank you...and make many more video for class 11 and 12th!!

ramaneshwark
Автор

num1 = int(input("Enter your number to check: "))
if num1 % 2 == 0:
print(f'{num1}' ' is even')
else:
print(f'{num1}' ' is odd')

lukeBalmar
Автор

Your explanation was very to the point and simple, I loved it. I am subscribing to your Chanel.

mangaMahwaRecap
Автор

print("number is odd") if int(input("number: "))%2 else print("number is even")

catmistrysupport
Автор

my program is this: nums = input("Enter 2 numbers, or press 'q' to quit:")
remainder = nums % 2

while(nums != "q"):
if (remainder == 0):
print(nums, "is an even number")
else:
print(nums, "is the bigger number")

binglu
Автор

So easy n understandable video for even or odd program 😊😇

Chick
Автор

all other videos were just gonna show you the code without any explanation and thats it, although, you did an amazing explanation, love from Saudi Arabia ❤️

KoenigseggEditz
Автор

Thanku sir today was my computer practical exam and i scores full in it i am subscribing ur channel

killergamingd
Автор

been trying to do this for hours and watched ur video n did it in 1 <333

asitharathnayake
Автор

I am speechless
Mind blowing explanation Sir👌

sadikff
Автор

Your explanation is very useful and interesting thankyou

akshayakrishnan
Автор

Thank u so much sir!!! Your explanation is so good.

taehyung_my_lyf
Автор

thank you so much, you're a life saver!

asmkjm
Автор

a=int(input("enter the number"))
If(a%2===0):
Print("the number is even")
Else:
Print ("the number is odd")



Sir, is this correct? Please reply

craftideasbyniru
Автор

thanks for this video, It wsa helpful .
I solved my homework by your video

nmrsa
Автор

Thank you so much!
I am also trying to teach Python in my channel

programmingbyrawaha
Автор

What If We Want The Username To Enter Two different numbers and we have to find which one is even and which one is odd.
Please Tell How Can We Do That What's The Python Program For That 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

ToxicJBeats
Автор

the way you break down the code is incredible I've never felt more confident coding up till now <3 new sub

BRRTa