Environment: Python 3.8
Key technique: Counter
A pangram is a sentence where every letter of the English alphabet appears at least once.
Given a string
sentence containing only lowercase English letters, return
sentence is a pangram, or
Input: sentence = "thequickbrownfoxjumpsoverthelazydog"
Explanation: sentence contains at least one of every letter of the English alphabet.
- if string length is less than 26, return false
- Use counter. if key length is less than 26, return false
- else case, return True
from collections import Counter
def checkIfPangram(self, sentence):