Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by Bob ( 15 years ago )
def main():
newsent2=""
start_pos=0
vowel_pos=0
oldsent=raw_input("Enter sentence:" )
for line in oldsent:
vowel=["A","a","E","e","I","i","O","o","U","u"]
if line in vowel:
vowel_pos=vowel_pos+1
newsent1=oldsent[start_pos:vowel_pos-1]+"V"+oldsent[vowel_pos-1:vowel_pos]
newsent2=newsent2+newsent1
start_pos=vowel_pos
#elif line=""
#print "mooo"
#newsent1=oldsent[start_pos:vowel_pos]
#newsent2=newsent2+newsent1
else:
vowel_pos=vowel_pos+1
print vowel_pos
else:
newsent1=oldsent[start_pos:vowel_pos]
newsent2=newsent2+newsent1
print newsent2
Revise this Paste