Lesson 11. Data Structures Part II: Tuples
PreviousLesson 10. Data Structures Part I: ListNextLesson 12. Data Structures Part III: Dictionaries
Last updated
Last updated
Tuples are an immutable data type.
As you saw in the lesson on list, you can change the values of a list. You cannot change the value of a tuple which comes in handy as we will see in later lessons.
For now, I am just going to show you how to create a tuple. We will work with them in more advanced topics.
Example #1 How To Create A Tuple
Don't copy and past. Type the code yourself!