The if-elif-else Statement in Python

  Рет қаралды 42,899

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 27
@Freefireboy-j4x
@Freefireboy-j4x 2 ай бұрын
I am in 8th grade and tomorrow is my practical test of computer.....You helped me so much 🙏
@SuribhaiMinecraft
@SuribhaiMinecraft Ай бұрын
I am also in class 8th may u have good luck for that day
@Freefireboy-j4x
@Freefireboy-j4x Ай бұрын
@SuribhaiMinecraft yep...I scored full marks in my practical test. THANKS 😊 FOR YOUR support 🙏
@jatin607
@jatin607 Жыл бұрын
Sir why are you left the Java playlist incomplete. Sir you are making so much efforts to make the video and we students are also look for the content which is completed.kindly upload the remaining video of Java playlist
@shivamchakrawarti8262
@shivamchakrawarti8262 Жыл бұрын
Great lecture sir if it is possible then please upload these lectures per day so that we remain consistent..
@daregamerboy2255
@daregamerboy2255 Жыл бұрын
Thank u for your effort sir 🙏
@RealRadaiZabala
@RealRadaiZabala Жыл бұрын
You are a great teacher, thank you very much... @Neso Academy
@SushilaMeena-1804
@SushilaMeena-1804 Жыл бұрын
Today's i perform this code in my lab but I can't understand but now my concept clear😊😊
@leealvin7671
@leealvin7671 Жыл бұрын
Let’s take n = 6 n = 6 if n % 2 == 0: print(“Number is divisible by 2”) elif n % 3 == 0: print(“Number is divisible by 3”) else: print(“Number is neither divisible by 2 nor 3”) print(“Done!”) The output will be: Number is divisible by 2 Done! Why is it though, even though 6 can also be divisible by 3 Reason: Since the first condition is satisfied, Python interpreter wouldn’t consider the second condition onwards and will continue after exiting the if-elif-else statement. Improvement: n = 6 if n % 2 == 0 & n % 3 == 0: print(“Number is divisible by 2 and 3”) elif n % 2 == 0: print(“Number is divisible by 2”) elif n % 3 == 0: print(“Number is divisible by 3”) else: print(“Number is neither divisible by 2 nor 3”) print(“Done!”) By adding a line of code, you may get the desired output Output: Number is divisible by 2 and 3 Done!
@doctorbongumusa1566
@doctorbongumusa1566 5 ай бұрын
python does not allow & unless you use ("&") it will then identify it as a string but will result in a syntax error
@kristinamwangekan2471
@kristinamwangekan2471 Жыл бұрын
Thank you...well explained
@chandraj1053
@chandraj1053 10 ай бұрын
Good explanation sir
@alexjrmatta
@alexjrmatta 2 ай бұрын
Excelente video !❤❤🎉🎉
@hadi1725
@hadi1725 Ай бұрын
thank u for ur hard work
@studentgroup1017
@studentgroup1017 Жыл бұрын
Thank you for Amazing Python course, Tottle how many videos are there of this course. Please replay
@adikwusunday3907
@adikwusunday3907 3 ай бұрын
Very well lecture.
@PacifistNihilist
@PacifistNihilist 4 ай бұрын
Thank you for the explanation. Also thank you for explaining what WAP meant because I had something totally different in mind 😂
@GousyaShaik-bq3xy
@GousyaShaik-bq3xy Жыл бұрын
Happy teacher's day sir😅
@kajalHere-r1d
@kajalHere-r1d 5 ай бұрын
thankyou for this ...
@DeathDishonor-i9k
@DeathDishonor-i9k 11 күн бұрын
thanks a lot
@zaki695
@zaki695 Жыл бұрын
Thank you sir
@MaTHNERVEs
@MaTHNERVEs 8 ай бұрын
How can i get pdf of class. I need this. My exam is knocking doors
@GitaAska-is6yz
@GitaAska-is6yz 8 ай бұрын
Tutorial python tricks and modifications
@lawrenceoko1783
@lawrenceoko1783 5 ай бұрын
Great
@TheZentleMan
@TheZentleMan 10 ай бұрын
Must run it 😂😅 print("Do you want to know what you were in a past life?") while True: a=input("enter 'yes' or 'no' to continue :") if a=="yes": print(" Chutiya thhe tum!") break elif a=="no": print(" toh bhaad mein jao phir! ") break else: print(" PLEASE ENTER ONLY 'yes' or 'no' ")
@DEWAAN-ud7ss
@DEWAAN-ud7ss Жыл бұрын
Thank you sir
Logical AND with Conditionals in Python
10:00
Neso Academy
Рет қаралды 11 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 614 М.
The if-else Statement in Python
9:41
Neso Academy
Рет қаралды 34 М.
If, Elif, Else Python Control Flow
16:30
Mahdi Noori
Рет қаралды 315
If statements in Python are easy (if, elif, else) 🤔
8:21
Bro Code
Рет қаралды 164 М.
If Else Statements in Python // Python RIGHT NOW!! // EP 4
14:19
NetworkChuck
Рет қаралды 432 М.
Python 3 Programming Tutorial: If Elif Else
4:19
sentdex
Рет қаралды 315 М.
Control Flow in Python - If Elif Else Statements
16:08
Programming with Mosh
Рет қаралды 312 М.
#20 Python Tutorial for Beginners | While Loop in Python
12:43
Telusko
Рет қаралды 1,7 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН