0% found this document useful (0 votes)
15 views

13-14 Exceptions Iterators Numpy and MatplotLib

The document discusses errors and exception handling in Python including using try, except and finally blocks to handle errors that may occur in code and planning for unexpected inputs. It also briefly mentions iterators, NumPy and MatPlotLib.

Uploaded by

Iam Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

13-14 Exceptions Iterators Numpy and MatplotLib

The document discusses errors and exception handling in Python including using try, except and finally blocks to handle errors that may occur in code and planning for unexpected inputs. It also briefly mentions iterators, NumPy and MatPlotLib.

Uploaded by

Iam Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Foundation Course in

Python
Errors & Exception Handling
Errors & Exception Handling:

● Errors are bound to happen in your code!


● Especially when someone else ends up using it in an
unexpected way.
● We can use error handling to attempt to plan for possible
errors.
Errors & Exception Handling:

○ try: This is the block of code to be attempted


(may lead to an error)

○ except: Block of code will execute in case there


is an error in try block

○ finally: A final block of code to be executed,


regardless of an error.
Iterators
NumPy
MatPlotLib

You might also like