<

Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Python Programming: Modules

Posted on
6,533 Points
133 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
Comment
Author:Dototot
0 Comments

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month