fork download
  1. -- your code goes here
  2. local a =
  3. {
  4. ["oi"] = {sim=1, nao=2},
  5. ["tchau"] = {sim=2, nao=1}
  6. }
  7. local falas = {}
  8.  
  9. local n = 0
  10. for k,v in pairs(a) do
  11. n = n+1
  12. falas[n] = k
  13. end
  14.  
  15. print(falas[1])
  16. print(falas[2])
Success #stdin #stdout 0.02s 2496KB
stdin
Standard input is empty
stdout
oi
tchau