(Mar-16-2019, 07:58 AM)Larz60+ Wrote: need closing quote on line 1Thank you for your response. One other question , how do you manipulate the spring to add addition strings to the original string. Thanks
first split on '!'
which will give you a list with two cells
split each cell on spaceg1 = g[0].split()
same for g[1]
append '!' to g[0]
print(g0, g1)
(Mar-17-2019, 08:52 AM)saravanatn Wrote:Thank you for your response, one additional question, what is I want to add more to the string, like thisg="Hello world ! what is your name ?" g1=g.split(' ') print(g1[0:3],end="") print(',',end="") print(g1[3:])
g="Hello world ! what is you name ? my name is Daniel .