Jump to content

User:Anirudh23042003/sandbox

From Wikipedia, the free encyclopedia

This is my user sandbox for completing GCI tasks.

Task 1

[edit]

Flowers b grow to 6 feet.jpg

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

Task 2

[edit]

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

Hello, world!

Hello from Lua to my friend Andy.

Hello from Lua to my friend Anirudh.

Hello from Lua to my friend Jimbo.

Task 3

[edit]

Temperature conversions:

5 degress celsius is 41 degrees Farenheit. It is cold.

25 degress celsius is 77 degrees Farenheit. It is warm.

0 degress celsius is 32 degrees Farenheit. It is cold.

Checking tests :)

9 degress celsius is 48.2 degrees Farenheit. It is cold.

10 degress celsius is 50 degrees Farenheit. It is warm.

8.5 degress celsius is 47.3 degrees Farenheit. It is cold.

7 degress celsius is 44.6 degrees Farenheit. It is cold.

0 degress celsius is 32 degrees Farenheit. It is cold.

0 degress celsius is 32 degrees Farenheit. It is cold.

Task 4

[edit]

6 times table
6 times 1 equals 6
6 times 2 equals 12
6 times 3 equals 18
6 times 4 equals 24
6 times 5 equals 30
6 times 6 equals 36
6 times 7 equals 42
6 times 8 equals 48
6 times 9 equals 54
6 times 10 equals 60
6 times 11 equals 66
6 times 12 equals 72

2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24

2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24

2 times table
2 times 1 equals 2
2 times 2 equals 4
2 times 3 equals 6
2 times 4 equals 8
2 times 5 equals 10
2 times 6 equals 12
2 times 7 equals 14
2 times 8 equals 16
2 times 9 equals 18
2 times 10 equals 20
2 times 11 equals 22
2 times 12 equals 24

-8 times table
-8 times 1 equals -8
-8 times 2 equals -16
-8 times 3 equals -24
-8 times 4 equals -32
-8 times 5 equals -40
-8 times 6 equals -48
-8 times 7 equals -56
-8 times 8 equals -64
-8 times 9 equals -72
-8 times 10 equals -80
-8 times 11 equals -88
-8 times 12 equals -96

Tables

[edit]

Hello Dad
Hello Mum
Hello Uncle Stan
Hello Aunty Elsie
Hello Brian
Hello Harry Potter
Hello Lord Voldemort
Hello Tony Stark

Task 5

[edit]

This is easy

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.

Year = 2018
Day = 31
Month = October

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+)")

Check

[edit]

Year = 2018
Day = 31
Month = October

Task 6

[edit]
Extended content

oc - occitan
sc - sardu
ady - адыгабзэ
ike-latn - inuktitut
ab - аԥсшәа
glk - گیلکی
sli - Schläsch
lb - Lëtzebuergesch
nb - norsk bokmål
xal - хальмг
wal - wolaytta
ast - asturianu
ca - català
ba - башҡортса
aa - Qafár af
ga - Gaeilge
sr-ec - српски (ћирилица)
dag - dagbanli
kus - Kʋsaal
ja - 日本語
mus - Mvskoke
lus - Mizo ţawng
na - Dorerin Naoero
la - Latina
sa - संस्कृतम्
haw - Hawaiʻi
ruq - Vlăheşte
wa - walon
ta - தமிழ்
cpx-hans - 莆仙语(简体)
scn - sicilianu
tly-cyrl - толыши
nan-hant - 閩南語(傳統漢字)
zh-min-nan - Bân-lâm-gú
mnc-latn - manju gisun
pag - Pangasinan
mag - मगही
nan-latn-tailo - Bân-lâm-gú (Tâi-lô)
lij - Ligure
stq - Seeltersk
se-fi - davvisámegiella (Suoma bealde)
rki - ရခိုင်
nah - Nāhuatl
bcc - جهلسری بلوچی
lki - لەکی
crh-cyrl - къырымтатарджа (Кирилл)
aeb - تونسي / Tûnsî
pcm - Naijá
pcd - Picard
tdd - ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
bxr - буряад
ibb - ibibio
tcy - ತುಳು
jbo - la .lojban.
kbd-cyrl - адыгэбзэ
se-no - davvisámegiella (Norgga bealde)
acm - عراقي
chy - Tsetsêhestâhese
cdo - 閩東語 / Mìng-dĕ̤ng-ngṳ̄
kk-arab - قازاقشا (تٴوتە)
kjh - хакас
shy - tacawit
sco - Scots
nan - 閩南語 / Bân-lâm-gú
ban - Basa Bali
gan - 贛語
shi-latn - Taclḥit
kai - Karai-karai
jam - Patois
pam - Kapampangan
mad - Madhurâ
nys - Nyunga
aae - Arbërisht
guw - gungbe
sat - ᱥᱟᱱᱛᱟᱲᱤ
kaa - Qaraqalpaqsha
zgh-latn - tamaziɣt tanawayt
bbc - Batak Toba
lez - лезги
kbd - адыгэбзэ
gcf - kréyòl Gwadloup
kab - Taqbaylit
rgn - Rumagnôl
sah - саха тыла
bgc - हरियाणवी
szl - ślůnski
fiu-vro - võro
acf - Kwéyòl Sent Lisi
kcg - Tyap
sk - slovenčina
uk - українська
tk - Türkmençe
ku-latn - kurdî (latînî)
gsw - Alemannisch
dga - Dagaare
mk - македонски
bar - Boarisch
syl - ꠍꠤꠟꠐꠤ
ext - estremeñu
gan-hans - 赣语(简体)
myv - эрзянь
hrx - Hunsrik
fj - Na Vosa Vakaviti
lzh - 文言
kj - Kwanyama
koi - перем коми
krj - Kinaray-a
kea - kabuverdianu
ccp - 𑄌𑄋𑄴𑄟𑄳𑄦
zh-classical - 文言
zh - 中文
pdc - Deitsch
ti - ትግርኛ
si - සිංහල
kri - Krio
hi - हिन्दी
mnc-mong - ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ
fi - suomi
mi - Māori
li - Limburgs
ki - Gĩkũyũ
tg-latn - tojikī
dtp - Kadazandusun
bh - भोजपुरी
ch - Chamoru
shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ
nmz - nawdm
kum - къумукъ
ceb - Cebuano
mui - Baso Palembang
pwn - pinayuanan
sh - srpskohrvatski / српскохрватски
tly - tolışi
tum - chiTumbuka
mh - Ebon
nup - Nupe
sh-latn - srpskohrvatski (latinica)
ko-kp - 조선말
ady-cyrl - адыгабзэ
atj - Atikamekw
pih - Norfuk / Pitkern
bpy - বিষ্ণুপ্রিয়া মণিপুরী
bg - български
lg - Luganda
kg - Kongo
ng - Oshiwambo
mg - Malagasy
ojb - Ojibwemowin
ig - Igbo
tg - тоҷикӣ
sg - Sängö
ug - ئۇيغۇرچە / Uyghurche
hak-hant - 客家語(繁體)
za - Vahcuengh
gcr - kriyòl gwiyannen
shi - Taclḥit
ff - Fulfulde
af - Afrikaans
loz - Silozi
kbp - Kabɩyɛ
pt-br - português do Brasil
rut - мыхаӀбишды
hak-hans - 客家语(简体)
ckb - کوردی
jut - jysk
mnw - ဘာသာမန်
cpx-latn - Pó-sing-gṳ̂ (Báⁿ-uā-ci̍)
vmw - emakhuwa
nyo - Orunyoro
ee - eʋegbe
de - Deutsch
ce - нохчийн
be - беларуская
nds-nl - Nedersaksies
nia - Li Niha
ne - नेपाली
wuu-hans - 吴语(简体)
ie - Interlingue
he - עברית
ryu - うちなーぐち
te - తెలుగు
mwl - Mirandés
tg-cyrl - тоҷикӣ
es-419 - español de América Latina
tzm - ⵜⴰⵎⴰⵣⵉⵖⵜ
nl-informal - Nederlands (informeel)
yue-hant - 粵語(繁體)
skr-arab - سرائیکی
hif-latn - Fiji Hindi
tt-latn - tatarça
abs - bahasa ambon
gd - Gàidhlig
sd - سنڌي
efi - Efịk
sh-cyrl - српскохрватски (ћирилица)
dty - डोटेली
yrl - Nhẽẽgatú
is - íslenska
ks - कॉशुर / کٲشُر
ms - Bahasa Melayu
trv - Seediq
ps - پښتو
ss - SiSwati
sty - себертатар
pnb - پنجابی
ur - اردو
se-se - davvisámegiella (Ruoŧa bealde)
gpe - Ghanaian Pidgin
apc - شامي
mnc - manju gisun
knc - Yerwa Kanuri
cs - čeština
bs - bosanski
fr - français
hr - hrvatski
kr - kanuri
mr - मराठी
nr - isiNdebele seSewula
or - ଓଡ଼ିଆ
kk-latn - qazaqşa (latın)
frp - arpetan
sr - српски / srpski
tru - Ṫuroyo
crh - qırımtatarca
brh - Bráhuí
smn - anarâškielâ
ar - العربية
br - brezhoneg
cr - Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ
sma - åarjelsaemien
nds - Plattdüütsch
lmo - lombard
sq - shqip
crh-latn - qırımtatarca (Latin)
arz - مصرى
shy-latn - tacawit
en-ca - Canadian English
ary - الدارجة
luz - لئری دوٙمینی
be-tarask - беларуская (тарашкевіца)
fon - fɔ̀ngbè
vep - vepsän kel’
ses - Koyraboro Senni
ts - Xitsonga
rmc - romaňi čhib
bdr - Bajau Sama
krl - karjal
es-formal - español (formal)
bo - བོད་ཡིག
nso - Sesotho sa Leboa
kk-kz - қазақша (Қазақстан)
btm - Batak Mandailing
tok - toki pona
arn - mapudungun
kk-cn - قازاقشا (جۇنگو)
ban-bali - ᬩᬲᬩᬮᬶ
roa-tara - tarandíne
pnt - Ποντιακά
to - lea faka-Tonga
so - Soomaaliga
no - norsk
mo - молдовеняскэ
tpi - Tok Pisin
bto - Iriga Bicolano
io - Ido
lo - ລາວ
ko - 한국어
fo - føroyskt
eo - Esperanto
map-bms - Basa Banyumasan
an - aragonés
csb - kaszëbsczi
anp - अंगिका
lrc - لۊری شومالی
yi - ייִדיש
hsb - hornjoserbsce
ase - American sign language
inh - гӀалгӀай
rn - ikirundi
sn - chiShona
tn - Setswana
mn - монгол
nn - norsk nynorsk
vro - võro
kn - ಕನ್ನಡ
ln - lingála
en - English
gn - Avañe'ẽ
nqo - ߒߞߏ
kk-tr - qazaqşa (Türkïya)
am - አማርኛ
mhr - олык марий
diq - Zazaki
gom-deva - गोंयची कोंकणी
qug - Runa shimi
sm - Gagana Samoa
rm - rumantsch
nrm - Nouormand
om - Oromoo
nod - ᨣᩤᩴᨾᩮᩬᩥᨦ
km - ភាសាខ្មែរ
arc - ܐܪܡܝܐ
frc - français cadien
mni - ꯃꯤꯇꯩ ꯂꯣꯟ
nan-latn-pehoeji - Bân-lâm-gú (Pe̍h-ōe-jī)
hsn - 湘語
nov - Novial
crh-ro - tatarşa
aeb-latn - Tûnsî
yo - Yorùbá
vo - Volapük
new - नेपाल भाषा
sl - slovenščina
tl - Tagalog
chr - ᏣᎳᎩ
pl - polski
ml - മലയാളം
nl - Nederlands
kl - kalaallisut
vot - Vaďďa
gl - galego
el - Ελληνικά
ku-arab - کوردی (عەرەبی)
igl - Igala
shn - ၽႃႇသႃႇတႆး
egl - Emiliàn
bgn - روچ کپتین بلوچی
kge - Kumoring
chn - chinuk wawa
zh-cn - 中文(中国大陆)
mos - moore
uz - oʻzbekcha / ўзбекча
bho - भोजपुरी
cbk-zam - Chavacano de Zamboanga
srn - Sranantongo
nv - Diné bizaad
zh-tw - 中文(臺灣)
zh-sg - 中文(新加坡)
dz - ཇོང་ཁ
zh-my - 中文(马来西亚)
zh-mo - 中文(澳門)
liv - Līvõ kēļ
hz - Otsiherero
awa - अवधी
zu - isiZulu
ho - Hiri Motu
zh-hans - 中文(简体)
zgh - ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
zea - Zeêuws
yue-hans - 粵语(简体)
udm - удмурт
az - azərbaycanca
hif - Fiji Hindi
gor - Bahasa Hulontalo
xsy - saisiyat
xmf - მარგალური
xh - isiXhosa
wuu-hant - 吳語(正體)
wuu - 吴语
wo - Wolof
my - မြန်မာဘာသာ
yue - 粵語
ky - кыргызча
war - Winaray
vmf - Mainfränkisch
guc - wayuunaiki
es - español
ny - Chi-Chewa
ksw - စှီၤ
de-ch - Schweizer Hochdeutsch
cy - Cymraeg
vi - Tiếng Việt
vec - vèneto
hy - հայերեն
ve - Tshivenda
fy - Frysk
olo - livvinkarjala
ann - Obolo
tet - tetun
uz-latn - oʻzbekcha
ay - Aymar aru
os - ирон
uz-cyrl - ўзбекча
szy - Sakizaya
pi - पालि
ksh - Ripoarisch
arq - جازايرية
ug-latn - Uyghurche
ug-arab - ئۇيغۇرچە
lfn - Lingua Franca Nova
sms - nuõrttsääʹmǩiõll
sdh - کوردی خوارگ
de-formal - Deutsch (Sie-Form)
krc - къарачай-малкъар
vls - West-Vlams
wls - Fakaʻuvea
as - অসমীয়া
bat-smg - žemaitėška
tyv - тыва дыл
cpx-hant - 莆仙語(繁體)
ty - reo tahiti
tw - Twi
dua - Duálá
pfl - Pälzisch
lzz - Lazuri
hno - ہندکو
ttj - Orutooro
ace - Acèh
tt-cyrl - татарча
da - dansk
ks-deva - कॉशुर
tr - Türkçe
hu-formal - magyar (formal)
tig - ትግሬ
sro - sardu campidanesu
isv-latn - medžuslovjansky
gag - Gagauz
be-x-old - беларуская (тарашкевіца)
rue - русиньскый
fa - فارسی
ka - ქართული
ia - interlingua
ha - Hausa
gan-hant - 贛語(繁體)
ruq-latn - Vlăheşte
pms - Piemontèis
pa - ਪੰਜਾਬੀ
nap - Napulitano
th - ไทย
cho - Chahta anumpa
sr-el - srpski (latinica)
mzn - مازِرونی
rsk - руски
sw - Kiswahili
rw - Ikinyarwanda
kjp - ဖၠုံလိက်
iba - Jaku Iban
kw - kernowek
su - Sunda
lua - ciluba
co - corsu
zh-hk - 中文(香港)
bcl - Bikol Central
als - Alemannisch
sv - svenska
ro - română
bci - wawle
eml - emiliàn e rumagnòl
zh-hant - 中文(繁體)
bn - বাংলা
prg - prūsiskan
dsb - dolnoserbski
ik - Iñupiatun
skr - سرائیکی
ike-cans - ᐃᓄᒃᑎᑐᑦ
sje - bidumsámegiella
gv - Gaelg
got - 𐌲𐌿𐍄𐌹𐍃𐌺
simple - Simple English
gom-latn - Gõychi Konknni
cv - чӑвашла
dv - ދިވެހިބަސް
ks-arab - کٲشُر
roa-rup - armãneashti
bm - bamanankan
rmy - romani čhib
lad - Ladino
ltg - latgaļu
kv - коми
lv - latviešu
ilo - Ilokano
gld - на̄ни
bqi - بختیاری
din - Thuɔŋjäŋ
fat - mfantse
sgs - žemaitėška
khw - کھوار
sei - Cmique Itom
gaa - Ga
bew - Betawi
min - Minangkabau
grc - Ἀρχαία ἑλληνικὴ
av - авар
se - davvisámegiella
aeb-arab - تونسي
sdc - Sassaresu
ruq-cyrl - Влахесте
bug - Basa Ugi
rup - armãneashti
iu - ᐃᓄᒃᑎᑐᑦ / inuktitut
hu - magyar
gu - ગુજરાતી
ru - русский
eu - euskara
rif - Tarifit
hil - Ilonggo
azb - تۆرکجه
qu - Runa Simi
mdf - мокшень
bbc-latn - Batak Toba
kk - қазақша
pdt - Plautdietsch
pap - Papiamentu
ku - kurdî
jv - Jawa
nit - కొలామి
de-at - Österreichisches Deutsch
hak-latn - Hak-kâ-ngî (Pha̍k-fa-sṳ)
nyn - runyankore
zh-yue - 粵語
st - Sesotho
tt - татарча / tatarça
niu - Niuē
fit - meänkieli
tay - Tayal
nog - ногайша
frr - Nordfriisk
hak - 客家語 / Hak-kâ-ngî
sjd - кӣллт са̄мь кӣлл
bi - Bislama
it - italiano
ami - Pangcah
ii - ꆇꉙ
ht - Kreyòl ayisyen
et - eesti
hyw - Արեւմտահայերէն
mt - Malti
cpx - 莆仙語 / Pó-sing-gṳ̂
ms-arab - بهاس ملايو
mrj - кырык мары
mrh - Mara
pt - português
ang - Ænglisc
mai - मैथिली
bjn - Banjar
lt - lietuvių
isv-cyrl - меджусловјанскы
lld - Ladin
lbe - лакку
en-gb - British English
fur - furlan
gur - farefare
kk-cyrl - қазақша (кирил)
aln - Gegë
blk - ပအိုဝ်ႏဘာႏသာႏ
kiu - Kırmancki
gom - गोंयची कोंकणी / Gõychi Konknni
cu - словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
avk - Kotava
id - Bahasa Indonesia
alt - алтай тил
cps - Capiceño

= 552 languages

Language: pt
1 - pt-br
2 - en

= 2 languages.


Language: nl
1 - en

= 1 languages.


Language: es
1 - en

= 1 languages.

PageInfo

[edit]

Extension:Scribunto/Lua reference manual


Color exists and is not a redirect.

Colour exists and is a redirect.

Colr does not exist and is not a redirect.

Meter exists and is a redirect.

Metre exists and is not a redirect.

Google exists and is not a redirect.

Ggle does not exist and is not a redirect.

nil does not exist and is not a redirect.

nil does not exist and is not a redirect.

nil does not exist and is not a redirect.

LilyPond Task Beta

[edit]

{c' d' e' f' f' fes' eis' e'}