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 True if sentence is a pangram and False otherwise.
Function Signature
def check_if_pangram(sentence: str) -> bool:
...
Constraints
-
1 <= len(sentence) <= 1000
-
sentence
consists of lowercase English letters.
Examples
Input: sentence = "thequickbrownfoxjumpsoverthelazydog"
Output: True
The sentence contains each of the 26 letters from 'a' to 'z' at least once, so it is a pangram.
Input: sentence = "interview"
Output: False
The sentence uses only the letters 'i', 'n', 't', 'e', 'r', 'v' and 'w', so many letters (such as 'a', 'b' and 'c') are missing.
Input: sentence = "abcdefghijklmnopqrstuvwxy"
Output: False
The sentence has 25 distinct letters and is missing only 'z', which is enough to make it not a pangram.