| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 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 |