본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 11091번 알파벳 전부 쓰기

by 현장 2022. 3. 10.

-코드

a = 'abcdefghijklmnopqrstuvwxyz'
for _ in range(int(input())):
    s = input().lower()
    result = ''
    for i in a:
        if i not in s:
            result += i
    if len(result) == 0:
        print('pangram')
    else:
        print(f'missing {result}')