It is called line wrapping.
If the text is too long, the text wraps, regardless of word.
But the input function is also pretty glitchy, here is a fixed version:
def input_bettr(p = ''):
print(p, end = '', flush = True)
You can't add images directly in Python because it is a console-based language and you can't add images on the console directly. So rather, you will have to use Python's Tkinter Framework.
Lemme quickly overview how can you get an image to show in Tkinter.
Import Tkinter :
from tkinter import *
Create the window using Tk class:
root = Tk()
Create a cavas and pass in the width, height parameters:
canvas = Canvas(root, width = 700, height = 700)
Add an image file, only works with pn