how to display image in python using turtle code example

Example 1: python turtle import images

import turtle
from os import path
#WARNING: IMAGES MUST BE .GIF
currentDir = os.abspath(path.curdir) #get the python file location

wn = turtle.Screen()
wn.setup(width=700,height=400)
wn.title("image test")

wn.addshape(currentDir+"\\Resources\\image.gif") #u can make images in a new folder

myImage = turtle.Turtle()
myImage.speed(0) #so it will draw the image instantly
myImage.shape(currentDir+"\\Resources\\image.gif") #give your object the image
myImage.penup() #if you dont do this, it will draw a line
myImage.goto(0,0) #give your image a location

while True:
  wn.update() #update your window

Example 2: turtle graphics in python

from turtle import *
color('red', 'yellow')
begin_fill()
while True:
    forward(200)
    left(170)
    if abs(pos()) < 1:
        break
end_fill()
done()