단어 공부
파이썬 1157 - 단어 공부
str=input().lower() wordList=list(set(str)) cnt=[] for i in wordList: tmp=str.count(i) cnt.append(tmp) if cnt.count(max(cnt)) >= 2: print('?') else: print(wordList[(cnt.index(max(cnt)))].upper())
str=input().lower() wordList=list(set(str)) cnt=[] for i in wordList: tmp=str.count(i) cnt.append(tmp) if cnt.count(max(cnt)) >= 2: print('?') else: print(wordList[(cnt.index(max(cnt)))].upper())