[BOJ / Python] 10809 알파벳 찾기

도니·2023년 4월 3일

BOJ / Python

목록 보기
27/105
post-thumbnail

문제

백준 10809 알파벳 찾기

코드

#BOJ 10809 알파벳 찾기

word = input()
alphabets = list(range(97, 123))    #알파벳 소문자의 아스키 코드 범위
for x in alphabets:
    print(word.find(chr(x)), end = " ")

find() 함수:

profile
Where there's a will, there's a way

0개의 댓글