Write a python function that removes all the vowels from the given list of strings and return the list


Topic: Write a python function that removes all the vowels from the given list of strings and return the list

Solution

def myfunc(listitems):
    final=[]
    for strchar in listitems:
        for letters in strchar:
            if letters in ('a','e','i','o','u', 'A','E','I','O','U'):
                strchar = strchar.replace(letters,"")            
        final.append(strchar) 
    return final
    
myfunc(["rohan", "END"])



List all Python Programs