Here is what I want to do but doesn\'t work:
mystring = \"hello world\" toUpper = [\'a\', \'e\', \'i\', \'o\', \'u\', \'y\'] array = list(mystring) for c in arr
You can do:
mystring = "hello world" toUpper = ['a', 'e', 'i', 'o', 'u', 'y'] >>> ''.join([c.upper() if c in toUpper else c for c in mystring]) hEllO wOrld