what are libraries used for
sharing and re-using code among different programs
what is the difference between functions and libraries
libraries re-use code among different programs and functions within the same program
what are the two types of Python libraries
module and package
what is a module
a file that contains definitions and statements
what is a package
collection of modules in a hierarchy
does module need to be a program
no
what a module can contain
for example: classes, variables, functions
what is an entry point
if __name__ == “__main__”:
is module entry point executed upon import
no
in Linux where can you change PYTHONPATH
.bashrc
what is needed in each package folder
__init__.py file