set game caption pygame code example
Example 1: how to set up pygame
import pygame
import os
import sys
import random
pygame.init()
screen = pygame.display.set_mode((800, 500))
Example 2: pygame caption
pygame.display.set_caption("title")
import pygame
import os
import sys
import random
pygame.init()
screen = pygame.display.set_mode((800, 500))
pygame.display.set_caption("title")