728x90
1. Problem: https://py.checkio.org/en/mission/pangram/
2. My solution
def check_pangram(text):
'''
is the given text is a pangram.
'''
# your code here
List = []
pangram = ""
for character in list(text.lower()):
if ord(character) < 123 and ord(character) > 96:
List.append(character)
for char in sorted(set(List)):
pangram +=char
if pangram == "abcdefghijklmnopqrstuvwxyz":
return True
else: return False
728x90
'프로그래밍 문제 > [Python] CheckIO' 카테고리의 다른 글
[CheckIO/Scientific Expedition] striped words (0) | 2024.03.24 |
---|---|
[CheckIO/Scientific Expedition] Beat The Previous (0) | 2024.03.24 |
[CheckIO][Scientific Expedition] Latest-iso-datetime (0) | 2024.02.18 |
[CheckIO/Scientific Expedition] Longest substring of unique characters (0) | 2024.02.18 |
[CheckIO] Replace All Occureences (0) | 2024.02.18 |
댓글