Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Pangram-checker/MiniScript/pangram-checker.mini
Normal file
22
Task/Pangram-checker/MiniScript/pangram-checker.mini
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
sentences = ["The quick brown fox jumps over the lazy dog.",
|
||||
"Peter Piper picked a peck of pickled peppers.",
|
||||
"Waltz job vexed quick frog nymphs."]
|
||||
|
||||
alphabet = "abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
pangram = function (toCheck)
|
||||
sentence = toCheck.lower
|
||||
fail = false
|
||||
for c in alphabet
|
||||
if sentence.indexOf(c) == null then return false
|
||||
end for
|
||||
return true
|
||||
end function
|
||||
|
||||
for sentence in sentences
|
||||
if pangram(sentence) then
|
||||
print """" + sentence + """ is a Pangram"
|
||||
else
|
||||
print """" + sentence + """ is not a Pangram"
|
||||
end if
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue