How to split 123.4 in '1','2','3','.' ,'4'
How to split string in characters
Collapse
X
-
Good Morning Vladeta and welcome
What dev7060 is trying to say is that Bytes.com isn't a coding nor homework service, instead, the culture here is to help you to help yourself.
We'll proofread, we'll give pointers; however, complete solutions - not normally unless the solution is a really simple one-liner type.
So, with that in mind
We need two things from you:- What coding environment are you working in - we cannot tell because you've posted in the general forum instead of taking the time to find the correct topic forum
- Please post your script - click on that [CODE/] button in the reply-box-ribbon and then post the script between the [CODE][/CODE] tags
Best of luck with your projectLast edited by zmbd; Oct 22 '22, 01:15 AM.Comment
-
def split(word):
return list(word)
# Driver code
word = 'geeks'
print(split(wor d))
Check with this.Comment
Comment