🔥Finding it Damn Hard to Understand Python? Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT! Try Programiz PRO for Free: bit.ly/interactive-py
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.
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.
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.
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 🙏
🔥Finding it Damn Hard to Understand Python?
Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!
Try Programiz PRO for Free: bit.ly/interactive-py
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.
Ur explanation of exceptions is Exceptionally great!!
Simple and easy to understand. Thank you!
The head bobbing is amazing.
Thanks for all your efforts "Team Programiz" 🙌
I love these videos so much! Thank you for making them. :)
Here for my daily session of learning python, great video!
I have an exam tomorrow, hope this clutches up!
Awesome video creation, great explanation, thank you very much for your time.
Awesome video, keep up the great work! :)
Very good video. Thanks.
Great, easy to understand
BEST VIDEO QUALITY
Thanks
Thank you very helpful
great explanation
Bro,make a video on constructors ❤️, please
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.
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")
what's the difference between except : and except Exception as e: ? please tell me the answer as soon as
thank you so much
Great Content!
cheers
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.
NIce nice
2:13
👌🏻
nicee
👌👌👌
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