Tuples
Lesson 13Author : 🦒
Last Updated : October, 2017
Code
lucky_numbers = (4, 8, "fifteen", 16, 23, 42.0)
# indexes 0 1 2 3 4 5
# lucky_numbers[0] = 90 # tuples are immutable
print(lucky_numbers[0])
print(lucky_numbers[1])
print(lucky_numbers[-1])
print(lucky_numbers[2:])
print(lucky_numbers[2:4])
print(len(lucky_numbers))