Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Learn Python EXCEPTION HANDLING in 5 minutes! ๐Ÿšฆ
Play lesson

Python tutorial for beginners ๐Ÿ - Learn Python EXCEPTION HANDLING in 5 minutes! ๐Ÿšฆ

4.0 (0)
8 learners

What you'll learn

This course includes

  • 14.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

# 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")

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere