Posts

Assignment 7: Error Handling & Pickling

Image
Vid Chari 8/31/2019 Assignment 7: Error Handling & Pickling GitHub: https://github.com/vidhurchari/IntroToProg-Python Assignment 7: Error Handling & Pickling  Introduction The goal of this assignment is to get introduced to error handling and pickling. The input here is the user’s choice of numbers. In this assignment, I had to identify and highlight exceptions in both the inputs and some of the operations as well as pickling the variables that I wanted saved in the file. The script As described in the comments above, the script has the following steps – gathering inputs from the user, error checking them, performing the math operations and error handling those calculations as needed, pickling the data and passing it into a text file in its pickled format, reading the pickled values, unpickling them and displaying them back to the user Sample Output In the sample output, I have intentionally run the program twice in PyCharm as well as ...