7 lines
208 B
Lua
7 lines
208 B
Lua
list = {"mouse", "hat", "cup", "deodorant", "television", "soap", "methamphetamine", "severed cat heads"} --contents of my desk
|
|
|
|
item = io.read()
|
|
|
|
for i,v in ipairs(list)
|
|
if v == item then print(i) end
|
|
end
|