Indexing tuples and lists that contain tuples and lists: BEHIND THE SCENES!
Indexing Tuples and Lists that contain Tuples and Lists Hi! Welcome to this “Indexing tuples and lists” tutorial. We will be covering the principles behind indexing tuples and lists that contain tuples and lists as elements (they can also contain other data types, we’ll see an example of this right away). Presenting the examples we will be working with! As promised! Here are the two examples we will be working with during this tutorial. As you can see, we have a list and a tuple but the curious thing about them is that some of their element are also lists and tuples. NOTE: In these examples lists contain lists and tuples contain tuples, but lists can contain tuples as well and viceversa Finding an element in this data structure Let’s analyze the question presented in the slide above by following the diagram below. “How can we find "house3" in List1 ? We’ll start by breaking down the structure of ...