[Solved] How can I Print \n after each sentence?

[ad_1]

You can use repr() for this purpose:

print(repr(text))

This will also add quotes, and escape other characters like tabs, backspaces, etc.

Other option is to replace the newlines:

print(text.replace('\n', '\\n'))

This will escape only line breaks and no other special characters.

[ad_2]

solved How can I Print \n after each sentence?