read input from the user and create a table in lua code example
Example 1: lua tables
local favoritefoods_table = {"hamburger", "spaghetti", "pizza", "potato chips"}
--the table--
for i, v in pairs(favoritefoods_table) do --loop through the table--
print(i) --print the number--
print(v) --print the value--
end
Example 2: lua empty table
for k,v in pairs(table) do
table.remove(table, k)
end