Show an image from a file
image1.py
import pygamepygame.init()screen = pygame.display.set_mode((400, 300))done = Falseace = pygame.image.load("as.gif") # see link belowwhile not done:for event in pygame.event.get():if event.type == pygame.QUIT:done = Truescreen.blit(ace, (200, 0)) #x, ypygame.display.flip()pygame.quit()
put image file + python file into same folder:

download as.gif and save to same folder as python file
