- Oct 7, 2021
- 2
- 0
- 11
I have a problem here
Desired output:
My tried solution: I have tried using the split function in Python. Code:
I am stuck here and unable to proceed further. I have tried using for loop. But, I am not getting the required result.
Am I missing something or is there any other way of solving this problem?
Please let me know.
I have tried [a proprietary site describing str.split], A real-life example in MS Excel where the string entered in the cell is split based on some delimiter. As I followed the same it was working
Edited to remove potential spam link - moderator Ken g6
Code:
name = "Mohith Jain is my name."
Code:
['Mohith Jain', 'is', 'my name.']
My tried solution: I have tried using the split function in Python. Code:
Code:
result = name.split()
['Mohith', 'Jain', 'is', 'my', 'name']
Am I missing something or is there any other way of solving this problem?
Please let me know.
I have tried [a proprietary site describing str.split], A real-life example in MS Excel where the string entered in the cell is split based on some delimiter. As I followed the same it was working
Edited to remove potential spam link - moderator Ken g6
Last edited by a moderator: