Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state_names = ["Alabama","California","Oklahoma","Florida"]
- vowels = list('aeiou')
- output = []
- for state in state_names:
- state_list=list(state.lower())
- for vowel in vowels:
- while True:
- try:
- state_list.remove(vowel)
- except:
- break
- output.append(''.join(state_list).capitalize())
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement