🔥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.
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 🙏
🔥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.
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 love these videos so much! Thank you for making them. :)
Here for my daily session of learning python, great video!
Awesome video creation, great explanation, thank you very much for your time.
I have an exam tomorrow, hope this clutches up!
BEST VIDEO QUALITY
Very good video. Thanks.
Awesome video, keep up the great work! :)
Great, easy to understand
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
great explanation
Thanks
Thank you very helpful
what's the difference between except : and except Exception as e: ? please tell me the answer as soon as
thank you so much
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.
cheers
NIce nice
👌🏻
Great Content!
nicee
👌👌👌
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