Data Structures

In the previous lesson we’ve learnt the basics of Python programming, which included data types, variables, operators and flow control. In this lesson, we’re going to learn about somewhat more complex data types, which are known as data structures.
 
Data structures represent collections of basic data types, such as int, float, bool and string. They help us organize the data, so it can be accessed more efficiently. There are built-in and user-defined data structures.
Built-in data structures, as the name suggests, already exist within Python, making it easier for us programmers to use them. There’s list, tuple, set and dictionary, which are the main subject of this lesson. We will also learn more about strings, because they’re similar to the previous collections in some aspects.
User-defined data structures represent some types that are not supported in Python, but can be programmed/created by the programmer. Some of the user-defined types are: stack, tree, queue, linked list, graph and hashmaps. They are not the subject of this lesson.

Table of contents

Leave a Reply