titled = []
lowers = []
for word in text.split():
    if word.istitle():
        titled.append(word)
else:
    lower.append(word)
how to search for a capital letter within a string and return the list of words with and without capital letters