I have a string like this
>>> x=\"Alpha_beta_Gamma\" >>> words = [y for y in x.split(\'_\')] >>> words [\'Alpha\', \'beta\', \'Gam
x="Alpha_beta_Gamma" is_uppercase_letter = True in map(lambda l: l.isupper(), x) print is_uppercase_letter >>>>True
So you can write it in 1 string