how to count the amount of sentences in a paragraph in python
<p>this is what i have so far but my pparagraph only contains 5 full stops therefore only 5 sentences.but it keeps on returning 14 as a answer. can anyone help??</p>

<pre><code>file = open ('words.txt', 'r')
lines= list (file)
file_contents = file.read()
print(lines)
file.close()
words_all = 0
for line in lines:
    words_all = words_all + len(line.split())
    print ('Total words:   ', words_all)
full_stops = 0
for stop in lines:
    full_stops = full_stops + len(stop.split('.'))
print ('total stops:    ', full_stops)
</code></pre>

<p>here is the txt file</p>

<p>A Turning machine is a device that manipulates symbols on a strip of tape 
according to a table of rules. Despite its simplicity, a Turing machine can be
adapted to simulate the logic of any computer algorithm, and is particularly
useful in explaining the functions of a CPU inside a computer. The "Turing"
machine was described by Alan Turing in 1936, who called it an
"a(utomatic)-machine". The Turing machine is not intended as a practical
computing technology, but rather as a hypothetical device representing a
computing machine. Turing machines help computer scientists understand
the limits of mechaniacl computation. </p>
