4.8 Summary
This chapter introduced three types of Python collections: lists, tuples, and dictionaries. Together with strings, these four data types provide us with a powerful set of tools for solving problems. To investigate the use of these collections, we developed a set of algorithms for performing basic statistical analysis. In particular, we implemented functions to compute the following:
▶ Dispersion (simple range and standard deviation)
▶ Central tendency (mean, median, and mode)
▶ Frequency distribution
We introduced the methods of the statistics
module, which also perform these operations.Finally, we used the Turtle
class to create a graphical representation of a frequency histogram.
Key Terms
bar chart
central tendency ...
Get Python Programming in Context, 3rd Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.