<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"""A demonstration of tuples"""

age = 27
height = 176
name = 'David'
iq = 190  # I wish

# The next line assigns the variable person to a tuple
person = name, age, height, iq
print(person)
print(type(person))

# The operations you can do with a list all apply to tuples, except the ones
# that would modify the list

# Eg. indexing and slicing
print(person[0])  # what should this print? _David_
print(person[1:])  # what should this print? _(27, 176, 190)_

# Eg. len
print(len(person))  # what should this print? _4_

# We can't modify the tuple
person[0] = 'Anna'
print(person)
</pre></body></html>