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
- Take a string as input.
- Split the given string using split() and create an empty list.
- Using for loop and if statement check whether a word in the splitter string contains any vowels.
- If it has any vowels then add that word to the empty list.
- Print the list to see the words which has vowels in string.
Output :
Related Articles
Python program to add 2 lists with extend method.
Python program to sort list data, with the sort and sorted method.
Python program to remove data from the list from a specific index using the pop method.
Python program to get the max, min, and sum of the list using in-built functions.
Python program to check whether a list contains a sublist.
Python program to generate all sublists with 5 or more elements in it from the given list.