Every Letter Check
A pangram is a sentence that contains every letter of the alphabet, so it is often used to test fonts and keyboards. The function is_pangram receives a string sentence and checks whether it contains all 26 letters of the Latin alphabet. Letter case does not matter, so A and a count as the same letter.
Примеры
Ввод
"The quick brown fox jumps over the lazy dog"Вывод
TrueВвод
""Вывод
FalseВвод
"abcdefghijklmnopqrstuvwxyz"Вывод
TrueНужно реализовать
def is_pangram(sentence: str) -> bool:
Теги
stringsset
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga inVisible tests
1
Input
"The quick brown fox jumps over the lazy dog"Expected
True2
Input
""Expected
False3
Input
"abcdefghijklmnopqrstuvwxyz"Expected
True4
Input
"a quick movement of the enemy will jeopardize five gunboats"Expected
False5
Input
"the five boxing wizards jump quickly"Expected
True6
Input
"abc"Expected
FalseFocus radio
Paused · SomaFM · Fluid