Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def reverseVowelsOfString(s):
  2.     l=list(s)
  3.     vowels=[]
  4.     idx=[]
  5.     count=0
  6.     for i in l:
  7.         count+=1
  8.         if i in 'aeiou':
  9.             vowels.append(i)
  10.             idx.append(count-1)
  11.     print(vowels)
  12.     print(idx)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement