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.
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021T. MailundIntroduction to Computational Thinkinghttps://doi.org/10.1007/978-1-4842-7077-6_11
11. Data Structures, Objects, and Classes
Aarhus N, Denmark
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 ...