Replace first occurence of vowel with '_'

PHOTO EMBED

Sat Dec 24 2022 02:11:15 GMT+0000 (Coordinated Universal Time)

Saved by @sukumar #python

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)
content_copyCOPY