23 lines
582 B
Plaintext
23 lines
582 B
Plaintext
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
|