Write a python program that store character of a word as list elements and remove vowels from the list.


s=input("Enter any string=>")

list_s=list(s)
print(list_s)

for i in list_s:
    if i in ['a','e','i','o','u','A','E','I','O','U']:
        list_s.remove(i)

print(list_s)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *