Chapter 13: Modules

¡Supera tus tareas y exámenes ahora con Quizwiz!

dependency

A module being required by another program is often called...

_main_

What is the value of the __name__ built-in variable in a module that is executed as a script by the programmer?

module

a file containing python code that can be imported and used by scripts.

_name_

a global string variable automatically added to every module that contains the name of the module.

built-in module

a module that comes pre-installed with Python

Package

an entire dictionary of modules.

reload()

function that can be used to reload and reexecute the a changed module.

from moduleName import function

how do you use only the specific variable or function from a module without loading the entire module.

module object

is simply a namespace that contains definitions from the module.

sys.modules

what area is the list of already loaded modules located.

.py

what should a module file name always end with? (when you actually import it you dont need to add the file type at the end but it needs to be this type to be found)


Conjuntos de estudio relacionados

patho chapter 41 disorders of endocrine system

View Set

Investigating Identify and Access Management chapter 3

View Set

FINANCE QUIZ 4 (10-12), Finance Quiz 5

View Set

Quiz: Life Insurance /settlement Options

View Set

physics u4 multiple choice review

View Set

Physiology of Exercise Ch. 13 Quiz

View Set

Chemistry - Gas Laws Test Study Guide

View Set