This is a Lua course for the Swiftener Lua Playground (Fengari). Always print. Tables are 1-indexed. Python belongs in Introduction to Python.
Goal
Finish every chapter by running the copy-paste blocks. The last chapter is a kiosk inventory you can reuse.
How to take the course
- Keep this tutorial tab and the Lua Playground side by side.
- Wait until Lua is ready.
- Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
- Always
printa result. The first list item is index1, not0.
What this playground can and cannot do
- Can: Lua,
print, tables, local drafts, a kiosk text file. - Cannot: installing rocks, or a system shell.
Sample files
kiosk.txt— Nairobi kiosk lines