User:Anirudh23042003/sandbox

This is my user sandbox for completing GCI tasks.

Task 1


The list of filenames is stored in a variable called 'imgs'.

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

A1. p, which stands for package.

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

A2. The keyword 'function' starts a function definition.

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

A3. The 'end' keyword ends a function.

Hello World

Task 3
Temperature conversions:

Checking tests :)

Task 5
Q1. What does %d+ match in a Lua pattern?

A1. The %d matches to all digits. The + means that it will take the longest sequence that matches the pattern, in this case the longest sequence of digits.

Q2. What does %w+ match in a Lua pattern?

A2. The %w matches to all ASCII alphanumeric characters. The + means that it will take the longest sequence that matches the pattern, in this case the longest alphanumeric string.

The American style date has the month first, then the date, and then the year. So, we'll first have to extract the month, then the date and then the year. So, the pattern should be: local month, day, year = string.match(dmydate, "(%w+) (%d+), (%d+)")

PageInfo
=LilyPond Task Beta=