find = input() alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" if find in alpha: number=alpha.index(find) print(number+1)
index메서드
index
리스트의 인덱스 번호를 알려주는 메서드