<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Python Programming: Modules

Posted on
6,569 Points
169 Views
4 Endorsements
Last Modified:
Experience Level: Beginner
3:46
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)

4
Author:Dototot
0 Comments

Featured Post

Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
Next Video:

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month