pygame update screen code example
Example 1: how to update screen in pygame
pygame.display.update()
Example 2: pygame caption
pygame.display.set_caption("title")
pygame.display.update()
pygame.display.set_caption("title")