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
This will do the job. Keep in mind that strings are immutable, so you'll need to do some variation on building new strings to get this to work.
myString = "hello world" toUpper = ['a', 'e', 'i', 'o', 'u', 'y'] newString = reduce(lambda s, l: s.replace(l, l.upper()), toUpper, myString)