4.1. Introduction to Python Modules

One of the best things about the Python programming language is the ecosystem that surrounds it. This chapter introduces you to some of the amazing packages that allow you to solve real world problems without starting from scratch.

https://imgs.xkcd.com/comics/python.png

As you may have gathered, Python provides us the ability to use modules to do everything from sending emails to image processing to complex machine learning. But, even though Python gives us a tremendous amount of power from these modules you still need to know the python basics in order to glue everything together. We will start by looking at a module used to generate random numbers to learn how to make use of other modules in your programs.

4.1.1. Learning Goals

  • Understand that Python is extensible through modules

4.1.2. Objectives

  • To import an entire module
  • To import a single function from a module
  • To import a module giving it an alias
Next Section - 4.2. Modules