Chapter 7
7.1 Module basics
7.2 Importing names
circle() and area.circle() have different parameters.
51
.
The variable can no longer be used to call functions in the area module.
hello() requires one argument,
so this line would result in an error.
7.3 Top-level code
"Defining sphere
function" as a side effect.
__name__ is the module's name, unless the module was
run as the main program. In that case, __name__ is
"__main__"
.
7.4 The help function
#0000FF
.
7.5 Finding modules
tkinter module stands for Tk interface. Tk is a standard toolkit for creating windows, text boxes, buttons, and other graphical widgets.
Arrow's is a "fully-implemented, drop-in replacement for datetime."
hex_to_name("#daa520") returns
"goldenrod"
.