Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Pangram by Rafal__Kotas
def check_pangram(text):
a=text.lower()
print(a)
p=1
if(a.count('a')==0):
return False
if(a.count('b')==0):
return False
if(a.count('c')==0):
return False
if(a.count('d')==0):
return False
if(a.count('e')==0):
return False
if(a.count('f')==0):
return False
if(a.count('g')==0):
return False
if(a.count('h')==0):
return False
if(a.count('i')==0):
return False
if(a.count('j')==0):
return False
if(a.count('k')==0):
return False
if(a.count('l')==0):
return False
if(a.count('m')==0):
return False
if(a.count('n')==0):
return False
if(a.count('o')==0):
return False
if(a.count('p')==0):
return False
if(a.count('q')==0):
return False
if(a.count('r')==0):
return False
if(a.count('s')==0):
return False
if(a.count('t')==0):
return False
if(a.count('u')==0):
return False
if(a.count('v')==0):
return False
if(a.count('w')==0):
return False
if(a.count('x')==0):
return False
if(a.count('y')==0):
return False
if(a.count('z')==0):
return False
return True
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. 9, 2016