隨機輸入一個字符串,把最左邊的10個不重復的英文字母(不區分大小寫)挑選出來。 如沒有10個英文字母,顯示信息“not found”
輸入格式:
在一行中輸入字符串
輸出格式:
在一行中輸出最左邊的10個不重復的英文字母或顯示信息“not found"
輸入樣例1:
在這里給出一組輸入。例如:
poemp134
輸出樣例1:
在這里給出相應的輸出。例如:
not found
輸入樣例2
在這里給出一組輸入。例如:
This is a test example
輸出樣例2:
在這里給出相應的輸出。例如:
Thisaexmpl
s = input() t = ''.join([i for i in s if i.isalpha()]) result = ''.join([t[i] for i in range(len(t))if t[i].upper() not in t[:i].upper()]) if len(result) > 9: print(result[:10]) else: print("not found")