frase = "A B C D e f g h".split()
novo = []
for i in frase:
    if i.isupper():
        novo.append(i)
print(novo)

#https://pt.stackoverflow.com/q/466737/101

8da04ae61b33defdefd7ed49a4cf3b187fb556ad
<mask token>

<mask token>
for i in frase:
    if i.isupper():
        novo.append(i)
print(novo)

frase = 'A B C D e f g h'.split()
novo = []
for i in frase:
    if i.isupper():
        novo.append(i)
print(novo)

frase = "A B C D e f g h".split()
novo = []
for i in frase:
    if i.isupper():
        novo.append(i)
print(novo)

#https://pt.stackoverflow.com/q/466737/101
