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
PostgreSQLv16

Itt jelenik meg a kód futtatásának eredménye

Visible tests
1
Input
"The quick brown fox jumps over the lazy dog"
ExpectedTrue
2
Input
""
ExpectedFalse
3
Input
"abcdefghijklmnopqrstuvwxyz"
ExpectedTrue
4
Input
"a quick movement of the enemy will jeopardize five gunboats"
ExpectedFalse
5
Input
"the five boxing wizards jump quickly"
ExpectedTrue
6
Input
"abc"
ExpectedFalse
Focus radio
Paused · SomaFM · Fluid