-- Chapter 22 example: creating and looping a list.

local fruits = {"apple", "banana", "cherry"}

print(fruits[1])
print(fruits[2])
print(fruits[3])
print("Length: " .. #fruits)

for i, v in ipairs(fruits) do
    print(i, v)
end

-- Try-this: add a fourth fruit and watch the length grow.
