string=input('enter string:')
new=''
lis=['a','e','o','i','u']
for i in range(len(string)):
if string[i].lower() in lis:
new+='_'
new+=string[i+1:]
break
else:
new+=string[i]
print(new)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter