image pop up in python code example

Example: how to make a image pop up python

#so we can load up image
import turtle

#out setup so a screen can appear(using predefined object {screen} and setting it with a variable name so we can easily refer to it later)
screen = turtle.Screen()

#give variable to your image file and pathway MUST HAVE .GIF EXTENSION
image = "theimagename.gif"

#adding image 
screen.addshape(image)

#making our turtle image! making our turtle objects value the image 
turtle.shape(image)

#optional so that the screen stays for longer!
screen.exitonclick()