for word in text.split():
    lowers.append(word) if word.islower() else other.append(word)
how to search for a capital letter within a string and return the list of words with and without capital letters