# Homework 31 solution, problem 2: background colour. # Run with: python exercises/31/homework/solutions/02-background-colour.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Coloured Background") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((30, 30, 80)) # dark navy pygame.display.flip() clock.tick(60) pygame.quit()