I'm making a rock paper scissors game, and I'm using pygame to display some images, and depending on where I put my loop to have pygame open, pygame will either not respond, or my code won't continue
import random
import pygame
pygame.init()
width=400
height=400
dis=pygame.display.set_mode((width,height))
pygame.display.update
running=True
while running:
for event in pygame.event.get():
if event.type==pygame.QUIT:
running=False
pygame.quit()
readyToPlay=input("Are you ready? y or n ")