9THE CONTAINER DATA TYPES

According to Merriam-Webster, data is plural in form. If you’re working with data, you’re working with collections of things such as the names of students in a class or the luminosity of stars in the galaxy. You’re going to need somewhere to hold all of these collections. That’s where the container data types like tuples, lists, sets, and dictionaries come in handy. Each one serves a special purpose and comes with special abilities. Together, they’ll help you to keep your rats, genes, soil samples, and temperature measurements organized and under control.
In this chapter, we’ll explore the built-in data structures listed ...
Get Python Tools for Scientists now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.