Display mode can be used when program is displaying any graphics on screen.
Python modules like pygame and turtle can be used to draw graphics.
Here is small example:
import turtle
# Set up the screen
screen = turtle.Screen()
screen.bgcolor("lightgreen")
# Create a turtle object
pen = turtle.Turtle()
pen.color("blue")
pen.pensize(3)
# Draw a square
for _ in range(4):
pen.forward(100) # Move the turtle forward by 100 units
pen.right(90) # Turn the turtle right by 90 degrees
# Hide the turtle after drawing
pen.hideturtle()
# Keep the window open until you close it
turtle.done()