How to break a sentence in python depending on fullstop '.'?
<p>I writing a script in python in which I have the following string:</p>

<pre><code>a = "write This is mango. write This is orange."
</code></pre>

<p>I want to break this string into sentences and then add each sentence as an item of a list so it becomes:</p>

<pre><code>list = ['write This is mango.', 'write This is orange.']
</code></pre>

<p>I have tried using TextBlob but it is not reading it correctly.(Reads the whole string as one sentence).</p>

<p>Is there a simple way of doing it?</p>

<p>you should look in to the NLTK for python.
Here's a sample from NLTK.org</p>

<pre><code>&gt;&gt;&gt; import nltk
&gt;&gt;&gt; sentence = """At eight o'clock on Thursday morning
... Arthur didn't feel very good."""
&gt;&gt;&gt; tokens = nltk.word_tokenize(sentence)
&gt;&gt;&gt; tokens
['At', 'eight', "o'clock", 'on', 'Thursday', 'morning',
'Arthur', 'did', "n't", 'feel', 'very', 'good', '.']
&gt;&gt;&gt; tagged = nltk.pos_tag(tokens)
&gt;&gt;&gt; tagged[0:6]
[('At', 'IN'), ('eight', 'CD'), ("o'clock", 'JJ'), ('on', 'IN'),
('Thursday', 'NNP'), ('morning', 'NN')]
</code></pre>

<p>for your case you can do</p>

<pre><code>import nltk
a = "write This is mango. write This is orange."
tokens = nltk.word_tokenize(a)
</code></pre>

python list