I'm a beginner in Python and Pygame rn, but every time I try to open a Pygame window, the command window just runs an endless list of numbers. I've tried changing my code multiple times, and even copy pasted codes to open a Pygame window from multiple different websites. Different sources have some extra code added, but this is the code I tried last:
import pygame
pygame.init()
screen = pygame.display.set_mode((300, 300))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False