Summary
In this chapter, you looked at how to read and write to a text file using Python, followed by using assertions in defensive programming, which is a way of debugging your code. Finally, you explored different types of graphs and charts to plot data. You discussed the suitability of each plot for different scenarios and datasets, giving suitable examples along the way. You also discussed how to avoid plotting charts that could be misleading.
In the next chapter, you will learn how to use Python to write Object-Oriented Programming (OOP) codes. This includes creating classes, instances, and using write
subclasses that inherit the property of the parent class and extending functionalities using methods and properties.