Passed
Push — master ( 707024...50e2c3 )
by Ken M.
01:11
created

pangram   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A check_pangram() 0 2 1
1
__author__ = 'KenMercusLai'
2
3
4
def check_pangram(text):
5
    return len({i.lower() for i in text if 'a' <= i.lower() <= 'z'}) == 26
6
7
8
if __name__ == '__main__':
9
    # These "asserts" using only for self-checking and not necessary for auto-testing
10
    assert check_pangram("The quick brown fox jumps over the lazy dog."), "brown fox"
11
    assert not check_pangram("ABCDEF"), "ABC"
12
    assert check_pangram(
13
        "Bored? Craving a pub quiz fix? Why, just come to the Royal Oak!"
14
    ), "Bored?"
15