How to split text into a list in Python with split()
• 1 minSplitting text is one way to transform your unstructured data into structured data.
Here is an example;
"Egg, Chamomile, Ham" => ["Egg", "Chamomile", "Ham"]
As you can see we transform a string into a list of items.
Here is the code
Here you are! You now know how to split some text into a list in Python with split().
More on fundamentals
If you want to know more about Python fundamentals without headaches... check out the other articles I wrote by clicking just here: