Sep-24-2018, 07:16 PM
hello,
i have a 'one.txt'-file. 'one.txt' contains 11 sentences - plain text - utf-8 characters.
i want to write a py-script that process 'one.txt' in such way,
that every single sentence in 'one.txt' will begin on a new line and with one empty line between every sentence.
i have managed to:
thanks in advance
i have a 'one.txt'-file. 'one.txt' contains 11 sentences - plain text - utf-8 characters.
i want to write a py-script that process 'one.txt' in such way,
that every single sentence in 'one.txt' will begin on a new line and with one empty line between every sentence.
i have managed to:
file = open ('/home/tony/one.txt', r)
lines = file.read()
for cm in lines:
if cm == '.':
new = which module from the standard library should i use?thanks in advance
