Jump to content

User:Anirudh23042003/sandbox

From Wikipedia, the free encyclopedia

This is my user sandbox for completing GCI tasks.

Task 1

[edit]

Painted Tepee.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
ha - Hausa
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 - ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
cdo-hant - 閩東語(傳統漢字)
bxr - буряад
ibb - ibibio
ace - Acèh
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
gaa - Ga
sat - ᱥᱟᱱᱛᱟᱲᱤ
kaa - Qaraqalpaqsha
zgh-latn - tamaziɣt tanawayt
lbe - лакку
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
ksw - စှီၤ
tk - Türkmençe
mdf - мокшень
gsw - Alemannisch
kk - қазақша
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
hyw - Արեւմտահայերէն
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
nyn - runyankore
ruq-cyrl - Влахесте
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
cdo-latn - Mìng-dĕ̤ng-ngṳ̄ (Bàng-uâ-cê)
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
as - অসমীয়া
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
cop - ϯⲙⲉⲧⲣⲉⲙⲛ̀ⲭⲏⲙⲓ
arn - mapudungun
kk-cn - قازاقشا (جۇنگو)
als - Alemannisch
roa-tara - tarandíne
pnt - Ποντιακά
to - lea faka-Tonga
so - Soomaaliga
no - norsk
mo - молдовеняскэ
tpi - Tok Pisin
eml - emiliàn e rumagnòl
io - Ido
lo - ລາວ
ko - 한국어
fo - føroyskt
eo - Esperanto
map-bms - Basa Banyumasan
alt - алтай тил
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
grc - Ἀρχαία ἑλληνικὴ
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
isv-latn - medžuslovjansky
el - Ελληνικά
ku-arab - کوردی (عەرەبی)
igl - Igala
shn - ၽႃႇသႃႇတႆး
egl - Emiliàn
bgn - روچ کپتین بلوچی
kge - Kumoring
chn - chinuk wawa
zh-cn - 中文(中国大陆)
mos - moore
uz - oʻzbekcha / ўзбекча
bho - भोजपुरी
zgh - ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
ik - Iñupiatun
zh-tw - 中文(臺灣)
cbk-zam - Chavacano de Zamboanga
zh-sg - 中文(新加坡)
zh-my - 中文(马来西亚)
zh-mo - 中文(澳門)
co - corsu
dz - ཇོང་ཁ
sei - Cmique Itom
zh-hans - 中文(简体)
liv - Līvõ kēļ
hak-latn - Hak-kâ-ngî (Pha̍k-fa-sṳ)
awa - अवधी
zu - isiZulu
zea - Zeêuws
yue-hans - 粵语(简体)
ty - reo tahiti
xsy - saisiyat
xmf - მარგალური
xh - isiXhosa
az - azərbaycanca
hif - Fiji Hindi
gor - Bahasa Hulontalo
wuu-hant - 吳語(正體)
wuu - 吴语
wo - Wolof
de-formal - Deutsch (Sie-Form)
war - Winaray
vmf - Mainfränkisch
my - မြန်မာဘာသာ
yue - 粵語
ky - кыргызча
vi - Tiếng Việt
vec - vèneto
hak - 客家語 / Hak-kâ-ngî
ve - Tshivenda
ny - Chi-Chewa
es - español
de-ch - Schweizer Hochdeutsch
cy - Cymraeg
uz-latn - oʻzbekcha
uz-cyrl - ўзбекча
hy - հայերեն
nap - Napulitano
fy - Frysk
olo - livvinkarjala
udm - удмурт
tet - tetun
uk - українська
ay - Aymar aru
ann - Obolo
ug-latn - Uyghurche
szy - Sakizaya
os - ирон
ug-arab - ئۇيغۇرچە
arq - جازايرية
knc - Yerwa Kanuri
ksh - Ripoarisch
lfn - Lingua Franca Nova
sms - nuõrttsääʹmǩiõll
sdh - کوردی خوارگ
hu-formal - magyar (formal)
tyv - тыва дыл
vls - West-Vlams
wls - Fakaʻuvea
tw - Twi
lua - ciluba
ttj - Orutooro
bat-smg - žemaitėška
bto - Iriga Bicolano
cpx-hant - 莆仙語(繁體)
dua - Duálá
pfl - Pälzisch
tt-cyrl - татарча
da - dansk
hno - ہندکو
tr - Türkçe
tok - toki pona
sw - Kiswahili
ks-deva - कॉशुर
gom - गोंयची कोंकणी / Gõychi Konknni
rup - armãneashti
tig - ትግሬ
mni - ꯃꯤꯇꯩ ꯂꯣꯟ
ban-bali - ᬩᬲᬩᬮᬶ
th - ไทย
be-x-old - беларуская (тарашкевіца)
rue - русиньскый
gag - Gagauz
fa - فارسی
ka - ქართული
ia - interlingua
ami - Pangcah
gan-hant - 贛語(繁體)
fvr - poor’íŋ belé’ŋ
pa - ਪੰਜਾਬੀ
simple - Simple English
tcy - ತುಳು
id - Bahasa Indonesia
mai - मैथिली
rmy - romani čhib
sv - svenska
su - Sunda
rw - Ikinyarwanda
srn - Sranantongo
dga - Dagaare
kw - kernowek
sro - sardu campidanesu
sr-el - srpski (latinica)
iba - Jaku Iban
zh-hk - 中文(香港)
bcl - Bikol Central
ro - română
hke - kihunde
ho - Hiri Motu
bci - wawle
bn - বাংলা
zh-hant - 中文(繁體)
dsb - dolnoserbski
guw - gungbe
skr - سرائیکی
sje - bidumsámegiella
hz - Otsiherero
ike-cans - ᐃᓄᒃᑎᑐᑦ
kjp - ဖၠုံလိက်
gv - Gaelg
bm - bamanankan
loz - Silozi
jv - Jawa
cv - чӑвашла
dv - ދިވެހިބަސް
ks-arab - کٲشُر
roa-rup - armãneashti
got - 𐌲𐌿𐍄𐌹𐍃𐌺
lzz - Lazuri
lad - Ladino
sgs - žemaitėška
kv - коми
lv - latviešu
ilo - Ilokano
gld - на̄ни
kbp - Kabɩyɛ
din - Thuɔŋjäŋ
fat - mfantse
se - davvisámegiella
khw - کھوار
bew - Betawi
mt - Malti
sdc - Sassaresu
min - Minangkabau
bbc - Batak Toba
av - авар
bqi - بختیاری
aeb-arab - تونسي
ru - русский
ruq-latn - Vlăheşte
lus - Mizo ţawng
bug - Basa Ugi
iu - ᐃᓄᒃᑎᑐᑦ / inuktitut
hu - magyar
gu - ગુજરાતી
rsk - руски
eu - euskara
gl - galego
hil - Ilonggo
azb - تۆرکجه
qu - Runa Simi
rif - Tarifit
bbc-latn - Batak Toba
en-gb - British English
prg - prūsiskan
pms - Piemontèis
ku - kurdî
pi - पालि
nit - కొలామి
de-at - Österreichisches Deutsch
pdt - Plautdietsch
ku-latn - kurdî (latînî)
zh-yue - 粵語
st - Sesotho
tt - татарча / tatarça
niu - Niuē
fit - meänkieli
tay - Tayal
pap - Papiamentu
frr - Nordfriisk
cho - Chahta anumpa
sjd - кӣллт са̄мь кӣлл
nv - Diné bizaad
it - italiano
nog - ногайша
mi - Māori
ht - Kreyòl ayisyen
et - eesti
guc - wayuunaiki
bi - Bislama
cpx - 莆仙語 / Pó-sing-gṳ̂
mzn - مازِرونی
ii - ꆇꉙ
ms-arab - بهاس ملايو
pt - português
ang - Ænglisc
mrj - кырык мары
bjn - Banjar
lt - lietuvių
isv-cyrl - меджусловјанскы
mrh - Mara
blk - ပအိုဝ်ႏဘာႏသာႏ
ltg - latgaļu
fur - furlan
gur - farefare
lld - Ladin
krc - къарачай-малкъар
kk-cyrl - қазақша (кирил)
gom-latn - Gõychi Konknni
kiu - Kırmancki
aln - Gegë
cu - словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
avk - Kotava
cps - Capiceño
an - aragonés

= 557 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'}