import pygame import sys pygame.init() WHITE=(255,255,255) RED=(255,0,0) BLUE=(0,0,255) GREEN=(0,255,0) BLACK=(0,0,0) pygame.display.set_caption("Task0") display = pygame.display.set_mode((400,300)) while True: events = pygame.event.get() for event in events: if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()