Write a program to print a given string, replacing all the vowels with '_'


Topic: Write a program to print a given string, replacing all the vowels with '_'

Solution

st = "Where is this going? Could you please help me understand!"
vowels = "AEIOUaeiou"
for v in vowels:
    st = st.replace(v, '_')
print(st)



List all Python Programs