exercism-solutions/python/pangram/pangram.py
2021-07-05 18:41:25 +03:00

5 lines
188 B
Python

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