Python: pangram
This commit is contained in:
parent
93093ee6e9
commit
fa43e334cc
4 changed files with 116 additions and 0 deletions
5
python/pangram/pangram.py
Normal file
5
python/pangram/pangram.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from collections import Counter
|
||||
|
||||
def is_pangram(sentence):
|
||||
counter = Counter([ch.lower() for ch in sentence if ch.isalpha()])
|
||||
return len(counter.keys()) == ord('z') - ord('a') + 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue