You can use the ‘textwrap’ module to format and output text to design pretty outputs. If provides convenience methods to perform text wraping like you see in word processors.
sample_text = '''There is a wide, yawning black infinity. In every direction, the extension is endless; the sensation of depth is overwhelming. And the darkness is immortal. Where light exists, it is pure, blazing, fierce; but light exists almost nowhere, and the blackness itself is also pure and blazing and fierce.'''
You can test your Python code using the online code editor.