pygame insyall linux code example
Example 1: install pygame on mac
python3 -m pip install -U pygame==2.0.0.dev6
Example 2: how to set up pygame
import pygame
import os
import sys
import random
pygame.init()
screen = pygame.display.set_mode((800, 500))