I have list input in below format
[
"There are many technical seo companies around the world but THA is recognized as a leader in it. nnTraditional
marketing never provided better opportunity in understanding the
customers need. Moreover, with old school marketing aproper analysis
and handling of data was a lot difficult. As a result, the ROI and
efficiency were much lower as compared to AI based marketing model. 4
key benefits are highlighted here as why seo services should use ai
model over traditional approach.nnAI gives a positive influence on
SEO. With AI, corporations can boost the precision, efficiency, and
performance of search engine optimization techniques, comprising the
content generated for SEO. While some of the SEOs may fear that AI
will replace their role, AI fulfils in a supporting role as an
equipment.AI in SEO assists to enhance your recent SEO strategy by
finding out chances, like related keywords. Its algorithms, as well as
rate, help businesses expedite the method and improve the precision of
keyword research, competitor analysis, search intent analysis, and
much more.nnThere are many technical seo companies around the world
but THA is recognized as a leader in it. From advanced off page
services to professional seo services we are the market leader.nnOur
main value added proposition is ai seo optimization & business seo
with cutting edge technologies such as data science, machine learning,
semantic engineering, advanced search, and much more.nnWhile some of
the SEOs may fear that AI will replace their role, AI fulfils in a
supporting role as an equipment.AI in SEO assists to enhance your
recent SEO strategy by finding out chances, like related keywords. Its
algorithms, as well as rate, help businesses expedite the method and
improve the precision of keyword research, competitor analysis, search
intent analysis, and much more.nnnIts algorithms, as well as rate,
help businesses expedite the method and improve the precision of
keyword research, competitor analysis, search intent analysis, and
much more.n"
]
I required code to split it by new line notation,any ways to do it in python?
2
Answers
Looks like your list only has a single element so you can just do:
Output:
You could add another loop if there are multiple documents in the above list.
Use this code:
Step1: splitting the list using
n
Step2: remove the empty list and print
Result: