May-01-2021, 09:21 PM
I'm going to put my version as well.
newwords = [] vowels = ('a', 'e', 'i', 'o', 'u') for word in words: if len(word) > 4: for letter in word: if letter in vowels: word = word.replace(letter, '') newwords.append(word) else: newwords.append(word) print(' '.join(newwords))
Output:Msnry - Cncrt Blck (Smll) - Misc Air Lyr - Insltn - Almnm
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags