Python Modules

The modules in Python are used to organize the code. We can easily import a module in Python using the import statement. A module can be considered as a file with a code. This module can easily define functions and classes.

Load Module – import and from module import

To load a module in Python, use,

  • import statement
  • from-import statement

import statement

To import a module in Python, use the import statement,


from-import statement

To import only the specific attributes of a module, use the from-import statement,


Following are the Python Modules:

  1. math module
  2. random module
  3. statistics module
Python break and continue statements
Python statistics module
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading