Summary
In this chapter, you learned how to read data from text files. You learned how to write data to the text files. Text files are not a good choice to store complex data such as list and dictionary. In order to store complex data, we have used pickle
files. After that, you learned to handle exceptions. Without handling exceptions you cannot write standard code. In exceptions, you learned how to handle multiple exceptions and how to print its exception type. In end of the chapter, you learned how to create your own exception.
Â