I see that people usually import Pygame like this:
import pygame
from pygame.locals import *
I don’t understand what’s the second line for. If we already imported the whole of Pygame, why import pygame.locals? Doesn’t Pygame already include it once it’s imported?
imports the pygame module into the “pygame” namespace.
copys all names in pygame.locals into your current namespace. This is not neccessary, but saves you typing.