isupper
is a function not an attribute so it needs parenthesis>>> "Fred".isupper <built-in method isupper of str object at 0x0348DEC0> >>> "Fred".isupper() False >>> "Fred"[0].isupper() TrueAlso you should be using
for
loops for this, not while
loops:code = "soMe SuPPLies liKE Ice-cREAm aRe iMPORtant oNly tO THeir cReaTORS. tO DestroY thEm iS pOInTLess" for word in code.split(): if word[0].isupper(): print(word)