string=input('enter string:')
new=''
lis=['a','e','i','o','u']
for i in string:
if i.lower() in lis:
i='' # continue
new+=i
print('The string after removing vowels is',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