Python program which replaces all vowels in the string with ‘*’

preview_player
Показать описание
Music Credits :
Music: Joy
Musician: ASHUTOSH

Source Code:
#Write a program which replaces all vowels in the string with ‘*’.

str=input('Enter a string:')
newstr = " "

for i in str:
if i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U':
newstr+='*'
else:
newstr+=i

print(newstr)

Hope you enjoyed...

Like, Share and SUBSCRIBE
Рекомендации по теме
join shbcf.ru