pygame.display.flip() code example
Example 1: how to update screen in pygame
pygame.display.update()
Example 2: pygame flip image
# Flip an image
image = pygame.image.load('image.png')
flipped = pygame.transform.flip(image, True, False)
Example 3: pygame caption
pygame.display.set_caption("title")