<filename>tuple.py
t = (1, 2, 3, 4, 5)

# O(1)
t[0] # Get element by index

# O(n)
2 in t     # Check element membership
t.count(3) # Count element appearances
<filename>tuple.py
t = (1, 2, 3, 4, 5)

# O(1)
t[0] # Get element by index

# O(n)
2 in t     # Check element membership
t.count(3) # Count element appearances
# O(1) # Get element by index # O(n) # Check element membership # Count element appearances