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

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

Example Program

5 лет назад

165,386 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Dilip kumar Arulappan
Dilip kumar Arulappan - 20.11.2023 06:16

Display numbers from 1 to 50. Numbers divisible by 3 should be
displayed as “Accord”, divisible by 5 should be displayed as “matrix”.
Numbers divisible by 3 and 5 should be displayed as “Accord info"Matrix" how to create the code in python

Ответить
AK technolgy
AK technolgy - 14.10.2023 11:43

The most beautiful English accent doesn't exis-

Ответить
Asitha Rathnayake
Asitha Rathnayake - 15.08.2023 20:30

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

Ответить
Neelima
Neelima - 23.07.2023 08:17

hi i did not understand why you have used % instead of /

Ответить
Little shiv
Little shiv - 19.07.2023 18:35

Har Har Mahadev ❤️❤️❤️❤️

Ответить
Little shiv
Little shiv - 19.07.2023 18:35

Har Har Mahadev ❤️❤️❤️❤️

Ответить
harish fandy
harish fandy - 26.05.2023 07:26

hhhhhhhhhhhheiiiiii suuuuuuuuuppppppppppppppppppppppppperrrrr yyyyyaa

Ответить
Lonely Stickman
Lonely Stickman - 08.04.2023 23:04

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 ❤️

Ответить
Adiflied
Adiflied - 09.02.2023 14:30

Whenever I press Enter it asks for the input right away

Ответить
Sarvesh
Sarvesh - 08.02.2023 19:55

Thank you!

Ответить
killergaming3D😵😎
killergaming3D😵😎 - 08.02.2023 19:33

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

Ответить
ahn seongmin
ahn seongmin - 07.02.2023 21:31

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

Ответить
A10
A10 - 29.01.2023 15:02

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

Ответить
Sreeja Sircar
Sreeja Sircar - 17.01.2023 19:22

Thank you

Ответить
PsyCho On It
PsyCho On It - 29.12.2022 10:40

how to check if a num is positive even and positive odd, negative even and negative odd ( user input ).can u please code me this out? just write in the comment, i will get that.

Ответить
shokeen nikeeta
shokeen nikeeta - 29.12.2022 09:39

i did it 😯🥳

Ответить
Harshan
Harshan - 28.12.2022 19:17

🌑

Ответить
Anita devi
Anita devi - 25.12.2022 20:35

X=int(input("Enter the number here"))
if (x % 2 == 0):
Print(X,"is an even number")
Else:
Print(X,"is an odd number")

Ответить
Meetesh Chouhan
Meetesh Chouhan - 14.12.2022 19:36

Thanks 😊

Ответить
Aesthetic ☄️
Aesthetic ☄️ - 09.12.2022 17:05

Such a wonderful video and such a good explanation thanks!

Ответить
MD AFROJ
MD AFROJ - 23.11.2022 21:48

Thank you sir 😎😍😍

Ответить
Kuch bhi
Kuch bhi - 11.11.2022 19:04

agr mai float (22.2) input kr raha hu toh ye o/p odd de raha h.. why?

Ответить
Samsung Grand Prime
Samsung Grand Prime - 20.10.2022 19:30

👌

Ответить
Mohd. Hamid
Mohd. Hamid - 16.10.2022 15:20

Very nice sir

Ответить
D. BALASARAVANAN
D. BALASARAVANAN - 08.10.2022 17:18

Please write a program to check whether the given number is even or odd using class in python

Ответить
SATISH💸
SATISH💸 - 06.10.2022 17:23

Uthke baitho

Ответить
SATISH💸
SATISH💸 - 06.10.2022 17:19

Any body single?

Ответить
SATISH💸
SATISH💸 - 06.10.2022 17:17

Achaaa

Ответить
SATISH💸
SATISH💸 - 06.10.2022 17:16

Mehak loveyou❤

Ответить
Seniome
Seniome - 23.09.2022 19:20

hey, i have a doubt that isnt related but, what if i wanna add 2 numbers with input and then if someone inputs a word then type a message saying "please enter a number" ?

Ответить
Kashish Sirohiwal
Kashish Sirohiwal - 12.09.2022 14:34

Thankyou so much for this🙂🌼

Ответить
MohammadAmin Hanif
MohammadAmin Hanif - 22.08.2022 19:59

how about zero? this number is not even or odd !!! how can I solve this problem?

Ответить
Jimgr1
Jimgr1 - 09.08.2022 12:04

Never thought about that

Ответить
Dark soul
Dark soul - 05.08.2022 05:48

Tareeka to yrr yahi hai but invalid syntax aarha hai !!

Ответить
Ganesh Gane
Ganesh Gane - 04.08.2022 07:59

sir how to find special number vidieo

Ответить
Nmr Sa
Nmr Sa - 31.07.2022 23:25

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

Ответить
SADIKFF2.0
SADIKFF2.0 - 23.07.2022 15:04

I am speechless
Mind blowing explanation Sir👌

Ответить
Captain Khaki
Captain Khaki - 11.07.2022 17:38

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

Ответить
Isha Qureshi
Isha Qureshi - 01.06.2022 10:16

when I'm typing print(number, " is an even number ") its coming error expected an indented block after 'if' statement on line 1

Ответить
Kirankumar S Hiremath
Kirankumar S Hiremath - 20.05.2022 19:52

10 is even or odd number sir....?

Ответить
Lucille Wiid
Lucille Wiid - 11.05.2022 09:58

Really great video explaining it very nicely!

Ответить
Gawtham Krishna
Gawtham Krishna - 28.04.2022 03:31

def oddeven(a):
if (a%2==0):
return 1
else:
return 0
num = int(input("Enter a number: "))
if (oddeven(num)==1):
print("The given number is Even")
else:
print("The given number is Odd")



this one is with function :)

Ответить
Derrick Pham
Derrick Pham - 23.02.2022 22:46

thank u

Ответить
Eekshita Sai
Eekshita Sai - 19.02.2022 17:43

Sir who to prees modular division symbol % in codetantra in mobile key board

Ответить
Bing Lu
Bing Lu - 19.02.2022 00:09

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")

Ответить
Jeeval Goyal
Jeeval Goyal - 16.02.2022 10:03

Noice

Ответить
Deep Ghosh
Deep Ghosh - 28.01.2022 16:22

Thank you❤

Ответить
All in One Unofficial
All in One Unofficial - 28.01.2022 15:32

What if we enter 0? It is displaying it as even! What to do?

Ответить
Nunna Kalyan
Nunna Kalyan - 05.01.2022 08:03

nice info keep continue.sir

Ответить
som verma
som verma - 20.12.2021 15:07

Great

Ответить