Write a single line code in python3. to return list of first letter of each word from given statement. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a single line code in python3. to return list of first letter of each word from given statement.

Statement=" Hello my name is Michael Jackson" I can write that code in three lines minimum.. can anybody help me with that.?? Ans is ['H','m',,'n','i','M','J']

30th Mar 2020, 11:19 AM
AMRIT PRASAD PHUYAL
AMRIT PRASAD PHUYAL - avatar
1 Answer
+ 1
~ swim ~ that works ... Thank you..🙏🙏
30th Mar 2020, 11:37 AM
AMRIT PRASAD PHUYAL
AMRIT PRASAD PHUYAL - avatar