Python Programming: Modules

Posted on
6,561 Points
4 Endorsements
Last Modified:
Experience Level: Beginner
Learn the basics of modules and packages in Python.

Video Steps

1. Every Python file is a module, ending in the suffix: .py

2. Modules are a collection of functions and variables.

3. Packages are a collection of modules.

4. Module functions and variables are accessed using the import statement; for example: import math.

5. Specific functions and variables may be imported using the from statement; for example: from math import pi.

6. The help() function displays all of the available functions and variables in a module; for example: help(math)


Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month