'if event.type==QUIT' generates a syntax error. Should be == pygame.QUIT
Also, the rest of the line is incorrect but I can't see how.
There's a cleaner variant here:
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()