Question: This function removes all the vowels in a text and returns a new text without any vowels. Vowels are the characters a , e ,

This function removes all the vowels in a text and returns a new text without any vowels.
Vowels are the characters a,e,i,o,u and are case insensitive
This function allows an optionally tuple data type parameter that represents a series of vowels to except in extraction
>>> remove_vowels("I like applies")
' lk ppls'
>>> remove_vowels("PYTHON is SUPER cOOl")
'PYTHN s SPR cl'
>>> remove_vowels("Are you having fun?", ('a','u'))
'Ar yu havng fun?'
>>> remove_vowels("Why oh why?", ('o','i'))
'Why oh why?'
>>> remove_vowels("George Brown College is here for you", ('e'))
'Gerge Brwn Cllege s here fr y'
Add 2 more Doctests

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!