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.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% 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.
● 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