🔴 문제
단어 공부
🟡 Sol
S = input().lower()
S_list = list(set(S))
cnt = []
for i in S_list:
count = S.count(i)
cnt.append(count)
if cnt.count(max(cnt))>=2:
print('?')
else:
print(S_list[cnt.index(max(cnt))].upper())
🟢 풀이
까다로운 문제라서 다른사람의 풀이를 참고했다.
🔵 Ref
https://wook-2124.tistory.com/257