local basket = {"apple","apple, "orange", "apple",
"orange", "orange"}
for num, item in pairs(basket) do
print(num, item)
if item == "apple" do
print"cut apple"
elseif item == "orange" do
print"peel orange"
end
end
I know what it prints (I have run the code) 1 apple cut apple 2 apple cut apple 3 orange peel orange 4 apple cut apple 5 orange peel orange 6 apple cut apple I do not understand any of the code in this block.

1 comment
forgot closing parenthesis on the second "apple".