# exception = An event that interrupts the flow of a program # (ZeroDivisionError, TypeError, ValueError) # 1.try, 2.except, 3.finally try: number = int(input("Enter a number: ")) print(1 / number) except ZeroDivisionError: print("You can't divide by zero IDIOT!") except ValueError: print("Enter only numbers please!") except Exception: print("Something went wrong!") finally: print("Do some cleanup here")
Hey man, just recently discovered your videos and the quality is insane. The way you explain things really sets you apart from other videos in the coding tutorial space. Would love to see a video covering git since i really want to use it but as soon as something goes wrong (so exactly where git should help you) i dont understand it anymore xD keep up the great work!
Great and simple video. I think you could just add "as e" after the global Exception to print "e" and give more details in case the error is catched in this last except-block. It may not be a good advice in some cases but when I write some scripts, I like to do it to be able to properly handle more problems.
Brother you know c,c++,java,python You have all the skills that people dream of So I had a question that do work at a company for living or what do you do for living ? ✨️💜
# exception = An event that interrupts the flow of a program
# (ZeroDivisionError, TypeError, ValueError)
# 1.try, 2.except, 3.finally
try:
number = int(input("Enter a number: "))
print(1 / number)
except ZeroDivisionError:
print("You can't divide by zero IDIOT!")
except ValueError:
print("Enter only numbers please!")
except Exception:
print("Something went wrong!")
finally:
print("Do some cleanup here")
Hey man, just recently discovered your videos and the quality is insane. The way you explain things really sets you apart from other videos in the coding tutorial space.
Would love to see a video covering git since i really want to use it but as soon as something goes wrong (so exactly where git should help you) i dont understand it anymore xD
keep up the great work!
Just what I needed Bro, simple and sensible
THE FINALLY BLOCK RUNS. NO. MATTER. WHAT.
A true Chad, we all love and thank you for you effort!!!!!
Great and simple video. I think you could just add "as e" after the global Exception to print "e" and give more details in case the error is catched in this last except-block. It may not be a good advice in some cases but when I write some scripts, I like to do it to be able to properly handle more problems.
Can you do a DSA series for Python please? Your tutorials are always straight to the meat with no fluff.
Or is that already done?
Great video
Finally I am clear this concept. Thanks Bro for this video🎉
Hi do you plan on doing Express & Node tutorials?
Bro is great..
Very helpful video sir. Please can you teach next Typescript
Nice video. Your video is very knowledgeable.
Bro can u take tailwind up next
Make a tutorial on flutter
Any response from Microsoft!!
Good video
Brother you know c,c++,java,python
You have all the skills that people dream of
So I had a question that do work at a company for living or what do you do for living ?
✨️💜
gotta comment for the algo!!
He is Chad nice teaching
rust please
how can i contact bro code
Random
I am your first commenter! Pls Pin Me!!!
i am the second
I am your first commenter pls pin me!