473,498 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to split string in characters

1 New Member
How to split 123.4 in '1','2','3','.','4'
Oct 15 '22 #1
3 17647
dev7060
639 Recognized Expert Contributor
How to split 123.4 in '1','2','3','.','4'
What have you done so far?
Oct 18 '22 #2
zmbd
5,501 Recognized Expert Moderator Expert
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 project
Oct 22 '22 #3
jameswalter
4 New Member
def split(word):
return list(word)

# Driver code
word = 'geeks'
print(split(word))



Check with this.
Oct 28 '22 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
31154
by: Stu Cazzo | last post by:
I have the following: String myStringArray; String myString = "98 99 100"; I want to split up myString and put it into myStringArray. If I use this: myStringArray = myString.split(" "); it...
2
427
by: Holysmoke | last post by:
Hi, I want to split a big string by nymber of characters. for eg., if total length of the string is 80 and I want to split by each 10 characters and get 8 lines of output. I written a...
1
2699
by: Raph | last post by:
hi, i would like export data to a DEL file, but without string characters delimiters ! Do you have some solutions or examples ? thanks Raph
7
3478
by: Johny | last post by:
I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition before the 6th...
5
2522
by: shaiful | last post by:
Hi all I have a simple problem with string. I want to split string, such as: dim s as string dim k(3) as string s="aa1,bv1,cc1,dt1" i want to split the value in k, k(0)=aa1 k(1)=bv1...
4
10168
by: dmitrey | last post by:
hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get from string "a,b;c" I have tried s.split(',;') but it don't work Thx, D.
4
7719
by: N9 | last post by:
Hi Anyone who can help about split string. string text = "History about a boy, who loves to play baseball with his friends." I like to find indexOf "play" and read the string 10 char left...
3
2240
xarzu
by: xarzu | last post by:
Tab Split String Not Working. Please Help. I wrote a C# program that reads code one line at a time. Each line has data seperated by tabs. Here is what my C# code is supposed to do. The line...
2
1390
by: Mudassir | last post by:
Dear all, i want to split string after each 15 lines, suppose i have a string which contains multiple lines, i want to split that string after each 15 lines.. any help will be greatly appreciated
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.