I have a paragraph with some spaces and special characters and "....." 's.
I would like to know if there is any function in python which helps in splitting the lines in the paragraph with specified delimiters like "...."
Thanks in advance
I have a paragraph with some spaces and special characters and "....." 's.
I would like to know if there is any function in python which helps in splitting the lines in the paragraph with specified delimiters like "...."
Thanks in advance
 
    
     
    
    Multiple ways to do this:
string.split will return a list of lines and then string.join to form the sentences. splitinput = # Your paragraph
input.split('...')  # will return a list of lines
''.join(input) # will return a set of lines
regex.split likewise will return a list of lines (recommended) regex splitre.split(r'\.\.\.', input)
