# 012: List Operations
# Modifying and working with lists

numbers = [1, 2, 3, 4, 5]

# Add to end
numbers.append(6)
show numbers  # [1, 2, 3, 4, 5, 6]

# Add to beginning
numbers.prepend(0)
show numbers  # [0, 1, 2, 3, 4, 5, 6]

# Remove by value
numbers.remove(3)
show numbers  # [0, 1, 2, 4, 5, 6]

# Check if contains
has_five = numbers.contains(5)
show "Has 5: {has_five}"

# Get slice
first_three = numbers[0:3]
show first_three  # [0, 1, 2]
