Python: pangram

This commit is contained in:
Dmitry Kokorin 2021-07-05 18:41:25 +03:00
parent 93093ee6e9
commit fa43e334cc
4 changed files with 116 additions and 0 deletions

View 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