Python: Split a list based on first character of word
Split List by First Character
Write a Python program to split a list based on the first character of a word.
Sample Input:
word_list = ['be','have','do','say','get','make','go','know','take','see','come','think', 'look','want','give','use','find','tell','ask','work','seem','feel','leave','call']
Sample Solution:
Python Code:
Sample Output:
a ask b be c call come d do ----- w want work
Flowchart:
Python Code Editor:
Previous: Write a Python program to convert a list of multiple integers into a single integer.
Next: Write a Python program to create multiple lists.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics