1. Home
  2. Computing & Technology
  3. Python

Modules

By Al Lukaszewski, About.com

Definition: Modules are small pieces of pre-written Python code that you can import into your programs. Using the 'import' command, you can effectively "cut and paste" all or part of a module. Regardless of whether the module is from the Python library or another program, the computer does not see a difference between the module and your program.

Explore Python

More from About.com

  1. Home
  2. Computing & Technology
  3. Python
  4. Programming Glossary
  5. Modules

©2008 About.com, a part of The New York Times Company.

All rights reserved.