For basic graphics, you can utilize graphics.py.
It's excluded with Python, so you should save it as a Python record (ideally named graphics.py) where Python can see it - on your sys.path.
Note: it is additionally accessible utilizing pip install graphics.py
Example utilizing graphics.py
from graphics import *
win = GraphWin(width = 200, height = 200) # create a window
win.setCoords(0, 0, 10, 10) # set the coordinates of the window; bottom left is (0, 0) and top right is (10, 10)
mySquare = Rectangle(Point(1, 1), Point(9, 9)) # create a rectangle from (1, 1) to (9, 9)
mySquare.draw(win) # draw it to the window
win.getMouse() # pause before closing
Join the python online course fast, to learn python concepts in detail and get certified.