it is showing no error just showing loading sign on a different display please check this code
import pygame import time pygame.init() black = (0,0,0) white