© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
T. MailundIntroduction to Computational Thinkinghttps://doi.org/10.1007/978-1-4842-7077-6_11

11. Data Structures, Objects, and Classes

Thomas Mailund1  
(1)
Aarhus N, Denmark
 

Until now, we have used basic Python data structures, such as dictionaries, tuples, and lists. These are excellent ways of representing data, but they are also primitive, and it can get challenging to rely on only these if you need to work with complex data—or even with not so complex data.

Let’s say we have some medical data we need to work on, where for each patient, we have several measurements. For this example, we make it simple and say that we have a name, a height, and a weight for ...

Get Introduction to Computational Thinking: Problem Solving, Algorithms, Data Structures, and More now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.