December 2015
Intermediate to advanced
416 pages
7h 15m
English
CHAPTER 15
![]()
Libraries and Modules

A library is a collection of code for functions and classes. Often, these libraries are written by someone else and brought into the project so that the programmer does not have to reinvent the wheel. In Python the term used to describe a library of code is module.
By using import pygame and import random, the programs created so far have already used modules. A library can be made up of multiple modules that can be imported. Often a library only has one module, so these words can sometimes be used interchangeably. ...
Read now
Unlock full access