User:Angr pukhlya/sandbox

This is my user sandbox. There are GCI tasks about Lua that I have done.

Task 1


imgs

Task 2
Q1. Which letter is conventionally used in Scribunto modules to hold the table of functions? A1. p

Q2. What keyword marks the start of a function definition? A2. function

Q3. What keyword marks the end of a function definition? A3. end

Task 5
Q1. What does %d+ match in a Lua pattern? A1. It matches 1 or more repetitions of digits. These repetition items will always match the longest possible sequence.

Q2. What does %w+ match in a Lua pattern? A2. It matches 1 or more repetitions of ASCII alphanumeric characters. These repetition items will always match the longest possible sequence.

"(%w+) (%d+), (%d+)"