天天看點

浙大版《Python 程式設計》題目集 第3章-22 輸出大寫英文字母

第3章-22 輸出大寫英文字母

s1 = list(input())
s2 = ""
cnt = 0
for i in s1:
    if i.isupper() and i not in s2:
        s2 += i
        cnt += 1
if cnt == 0:
    print("Not Found")
else:
    print(s2)