Both coins
both_coins.py
import pygame
pygame.init()
screen = pygame.display.set_mode((400, 300))
done = False
heads = pygame.image.load("heads.gif")
tails = pygame.image.load("tails.gif")
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
screen.blit(heads, (50, 50))
screen.blit(tails, (250, 50))
pygame.display.flip()
pygame.quit()
put image files + python file into same folder:

