22. Problem to get a list of words which has vowels in string.

In this program, we will take a user input as a string and convert it into a list. To check for words that have vowels in string with the help of the below-given steps.

Words which has vowels in string:

Steps to solve the program
  1. Take a string as input.
  2. Split the given string using split() and create an empty list.
  3. Using for loop and if statement check whether a word in the splitter string contains any vowels.
  4. If it has any vowels then add that word to the empty list.
  5. Print the list to see the words which has vowels in string.

Output :

Related Articles

Check whether the list is palindrome or not

Add two lists using extend method

Leave a Comment