new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
7
Task/Search-a-list/Lua/search-a-list.lua
Normal file
7
Task/Search-a-list/Lua/search-a-list.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue