...

/

Introduction to Modules and Libraries

Introduction to Modules and Libraries

Learn to use built-in modules to extend Python’s power.

Python is powerful not just because of its syntax but also because of its amazing libraries—prebuilt collections of code that do awesome things so you don’t have to start from scratch.

In this lesson, we’ll explore how to use these libraries (also called modules) to supercharge your code.

What’s a module?

A module is like a toolbox. We can import it into our code and start using its tools—functions, classes, constants, and more.

We’ve already used one:

import turtle
Accessing the turtle module to draw on the screen

...