pygame display set screen size code example
Example: pygame get screen width and height
#pygame
w, h = pygame.display.get_surface().get_size()
#w = width
#h = height
#pygame
w, h = pygame.display.get_surface().get_size()
#w = width
#h = height