Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mystring = "hello world"
- toUpper = ['a', 'e', 'i', 'o', 'u', 'y']
- array = list(mystring)
- for c in array:
- if c in toUpper:
- c = c.upper()
- print(array)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement