I have a string like this
>>> x=\"Alpha_beta_Gamma\" >>> words = [y for y in x.split(\'_\')] >>> words [\'Alpha\', \'beta\', \'Gam
To test that all words start with an upper case use this:
print all(word[0].isupper() for word in words)