Lesson 11. Data Structures Part II: Tuples

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

lat_long = (38.9984961,-104.8540895)


Now you try it!

Don't copy and past. Type the code yourself!

Last updated