Комментарии:
Thank u for your effort sir 🙏
ОтветитьGreat lecture sir if it is possible then please upload these lectures per day so that we remain consistent..
ОтветитьThank you...well explained
ОтветитьThank you sir
ОтветитьThank you for Amazing Python course,
Tottle how many videos are there of this course. Please replay
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
ОтветитьToday's i perform this code in my lab but I can't understand but now my concept clear😊😊
Ответить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!
Happy teacher's day sir😅
ОтветитьThank you sir
ОтветитьYou are a great teacher, thank you very much... @Neso Academy
Ответить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("\n Chutiya thhe tum!")
break
elif a=="no":
print("\n toh bhaad mein jao phir! ")
break
else:
print("\n PLEASE ENTER ONLY 'yes' or 'no' \n")
Good explanation sir
ОтветитьTutorial python tricks and modifications
ОтветитьHow can i get pdf of class. I need this. My exam is knocking doors
Ответитьthankyou for this ...
ОтветитьGreat
ОтветитьThank you for the explanation. Also thank you for explaining what WAP meant because I had something totally different in mind 😂
Ответитьthe div by 3 should be done by a loop
ОтветитьVery well lecture.
ОтветитьI am in 8th grade and tomorrow is my practical test of computer.....You helped me so much 🙏
ОтветитьExcelente video !❤❤🎉🎉
Ответитьthank u for ur hard work
Ответитьthanks a lot
Ответитьwhat a excellent explanation!!ty!!
Ответить