Level 84 Level 86
Level 85

Modules


12 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
module_name.py
Module organize code; stored in _______
import module
Importing modules syntax
from module import name
import specific objects from a module
from module import *
Imports all names from a module
set PYTHONPATH= path
sets path
global variable_name
Defines a global variable inside a function
dir(module_name)
returns a sorted list of strings containing the names defined by a module
__name__
special string variable : module's name
__file__
special string variable : filename of the module
globals()
returns a dictionary containing the names in the global namespaces depending where it is called
locals()
returns a dictionary containing the names in the local namespaces depending where it is called
reload(module_name)
Reloads an already loaded module again