Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverseVowelsOfString(s):
- l=list(s)
- vowels=[]
- idx=[]
- count=0
- for i in l:
- count+=1
- if i in 'aeiou':
- vowels.append(i)
- idx.append(count-1)
- print(vowels)
- print(idx)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement