






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Creating a script file of your Python input for each individual program would be cumbersome and ... The “sys” module is needed to access the command line.
Typology: Schemes and Mind Maps
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Brandon McKay
from module import function1, function function1(argument) function2(argument)
from module import *
$ python module.py arguments (name=“main”)
import module (name=“module”)
allows much faster execution of programs
“moduleName.version.pyc”
correct version/release of Python being used
command line, however
import module dir(module) [‘name’, ‘function1’, ‘function2’] a = 5 dir() [‘builtins’, ‘name’, ‘module’, ‘a’, ‘function1’, ‘function2’]
import package import package.subpackage.function package.subpackage.function(argument) from package.subpackage import function function(argument)