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']
3/30/2020 11:19:59 AM
You can use list comprehension
Statement = "Hello my name is Michael Jackson"
print([w for w in Statement.split()])
~ swim ~ that works ... Thank you..🙏🙏
Learn Playing. Play Learning
Send us a message