Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Pangram by Nuszwkartlo
def check_pangram(text):
counting = 0
if ('a' in text or 'A' in text):
counting = counting +1
if ('b' in text or 'B' in text):
counting = counting +1
if ('c' in text or 'C' in text):
counting = counting +1
if ('d' in text or 'D' in text):
counting = counting +1
if ('e' in text or 'E' in text):
counting = counting +1
if ('f' in text or 'F' in text):
counting = counting +1
if ('g' in text or 'G' in text):
counting = counting +1
if ('h' in text or 'H' in text):
counting = counting +1
if ('i' in text or 'I' in text):
counting = counting +1
if ('j' in text or 'J' in text):
counting = counting +1
if ('k' in text or 'K' in text):
counting = counting +1
if ('l' in text or 'L' in text):
counting = counting +1
if ('m' in text or 'M' in text):
counting = counting +1
if ('n' in text or 'N' in text):
counting = counting +1
if ('o' in text or 'O' in text):
counting = counting +1
if ('p' in text or 'P' in text):
counting = counting +1
if ('r' in text or 'R' in text):
counting = counting +1
if ('s' in text or 'S' in text):
counting = counting +1
if ('t' in text or 'T' in text):
counting = counting +1
if ('w' in text or 'W' in text):
counting = counting +1
if ('q' in text or 'Q' in text):
counting = counting +1
if ('v' in text or 'V' in text):
counting = counting +1
if ('x' in text or 'X' in text):
counting = counting +1
if ('y' in text or 'Y' in text):
counting = counting +1
if ('z' in text or 'Z' in text):
counting = counting +1
if ('u' in text or 'U' in text):
counting = counting +1
if (counting == 26):
return True
return False
if __name__ == '__main__':
# These "asserts" using only for self-checking and not necessary for auto-testing
assert check_pangram("The quick brown fox jumps over the lazy dog."), "brown fox"
assert not check_pangram("ABCDEF"), "ABC"
assert check_pangram("Bored? Craving a pub quiz fix? Why, just come to the Royal Oak!"), "Bored?"
Nov. 24, 2015