# Can create a tuple with mixed types
t = (1,2,3)

# Check len just like a list
len(t)

# Can also mix object types
t = ('one',2)

# Show
t

# Use indexing just like we did in lists
t[0]

# Slicing just like a list
t[-1]

"""
Explanation: Tuples
In Python tuples are very similar to lists, however, unlike lists they are immutable meaning they can not be changed. You would use tuples to present things that shouldn't be changed, such as days of the week, or dates on a calendar. 
In this section, we will get a brief overview of the following:
1.) Constructing Tuples
2.) Basic Tuple Methods
3.) Immutability
4.) When to Use Tuples.

You'll have an intuition of how to use tuples based on what you've learned about lists. We can treat them very similarly with the major distinction being that tuples are immutable.
Constructing Tuples
The construction of a tuples use () with elements separated by commas. For example:
End of explanation
"""


# Use .index to enter a value and return the index
t.index('one')

# Use .count to count the number of times a value appears
t.count('one')

"""
Explanation: Basic Tuple Methods
Tuples have built-in methods, but not as many as lists do. Lets look at two of them:
End of explanation
"""


t[0]= 'change'

"""
Explanation: Immutability
It can't be stressed enough that tuples are immutable. To drive that point home:
End of explanation
"""


t.append('nope')

"""
Explanation: Because of this immutability, tuples can't grow. Once a tuple is made we can not add to it.
End of explanation
"""


