Dec-14-2020, 10:56 PM
I want python to automatically import a new line, or /n code at each delimiter within a string. Lets say I want Python to make a new line at every 'period' it sees within the string...WITHOUT typing out the /n myself (I want Python to automatically import the new line)
Lets say I have a string
And at each period within the string, I want Python to create a new line, so it reads like this:
I know the split function can split the string, but I cant figure out how to import the /n code into each delimiter, or how to import new lines in python without coding it. How can I do this automatically rather than manually adding a /n to each line?
Lets say I have a string
Quote:'I want to be a developer. I also want to learn AWS. I am going to practice joining strings.'
And at each period within the string, I want Python to create a new line, so it reads like this:
Quote:'I want to be a developer.
I also want to learn AWS.
I am going to practice joining strings.'
I know the split function can split the string, but I cant figure out how to import the /n code into each delimiter, or how to import new lines in python without coding it. How can I do this automatically rather than manually adding a /n to each line?