This creates a window in fullscreen with size 500x500 pixels:
pygame.init()
screen = pygame.display.set_mode((500, 500), pygame.FULLSCREEN)
screen represents from now on the window on screen; it is a pygame.Surface object. Anything that should be come visible to the user has to be drawn onto it...