Learn Python with a more hands-on experience with Programiz PRO. 🚀 Get 60% off on our Lifetime Plan this Black Friday-pay once for skills that last forever. Don’t miss out, it’s a limited-time offer! 👉 Grab your discount now: bit.ly/blkfriday-py-24-yt
I am attending Community College on Python and I can not thank you enough for posting this exceptionally wonderful video when i have used the college books provided to me, Googled information on this topic and still was utterly confused.
Here is one small question. How to change this program about numerator and denominator in that way, when in the case of division by zero it will ask once again to enter numerator and denominator, and only in the case of correct answer it will say "The program ends". Thank you.
Hello, thank you for the video but i have a question. Does the try-except functionality will work with any type of error? I ask because this seems like a neat way of avoiding a longer code with an if structure.
I hope you already found the answer but for anybody else wondering: Normally the whole program is stopped immediately when an error occures. In this case code written outside the finally block can not be executed anymore. Code inside the finally block will still be executed.
hai buddha half statu no shown figures is buddhist people heart and our master lord buddha is not decorated is greate philosophyer bro please exite the half statu bro 🙏
Learn Python with a more hands-on experience with Programiz PRO.
🚀 Get 60% off on our Lifetime Plan this Black Friday-pay once for skills that last forever. Don’t miss out, it’s a limited-time offer!
👉 Grab your discount now: bit.ly/blkfriday-py-24-yt
Let's all appreciate amount of time invested in making these videos
I am attending Community College on Python and I can not thank you enough for posting this exceptionally wonderful video when i have used the college books provided to me, Googled information on this topic and still was utterly confused.
The head bobbing is amazing.
Ur explanation of exceptions is Exceptionally great!!
Simple and easy to understand. Thank you!
Thanks for all your efforts "Team Programiz" 🙌
I have an exam tomorrow, hope this clutches up!
Here for my daily session of learning python, great video!
I love these videos so much! Thank you for making them. :)
BEST VIDEO QUALITY
Very good video. Thanks.
Great, easy to understand
Awesome video creation, great explanation, thank you very much for your time.
Awesome video, keep up the great work! :)
Thank you very helpful
great explanation
Thanks
Here is one small question. How to change this program about numerator and denominator in that way, when in the case of division by zero it will ask once again to enter numerator and denominator, and only in the case of correct answer it will say "The program ends". Thank you.
You can do something like this:
def printDivision(numerator, denominator):
try:
result = numerator/denominator
print(result)
except:
print("Denominator cannot be 0.")
while (denominator == 0):
denominator = int(input("Enter denominator again: "))
printDivision(numerator, denominator)
numerator = int(input("Enter numerator: "))
denominator = int(input("Enter denominator: "))
printDivision(numerator, denominator)
print("Program ends")
Hello, thank you for the video but i have a question. Does the try-except functionality will work with any type of error? I ask because this seems like a neat way of avoiding a longer code with an if structure.
Bro,make a video on constructors ❤️, please
thank you so much
what's the difference between except : and except Exception as e: ? please tell me the answer as soon as
cheers
NIce nice
Great Content!
nicee
but the code inside finally can also be written outside the finally block .
so what is the need of finally block?
TRUE
I hope you already found the answer but for anybody else wondering:
Normally the whole program is stopped immediately when an error occures. In this case code written outside the finally block can not be executed anymore. Code inside the finally block will still be executed.
2:13
👌👌👌
👌🏻
Is the app for android free
Hi Roy,
Yes, our basic course in the app is free. For certificate and challenges, you will need to purchase Programiz PRO.
hai buddha half statu
no shown figures
is buddhist people heart and
our master lord buddha
is not decorated
is greate philosophyer
bro please exite the half statu
bro
🙏
Bro your videos would be better if you stop turning your head left and right every two seconds.. It is annoying and I cannot keep my focus on screen.
i was looking for this comment LMFAOOOOO