June 2017
Beginner
352 pages
8h 39m
English
The Python runtime system defines some special variables and attributes, the names of which are delimited by double underscores. One such special variable is called __name__, and it gives us the means for our module to determine whether it has been run as a script or, instead, imported into another module or the REPL. To see how, add:
print(__name__)
Add the end of your module, outside of the fetch_words() function.
Read now
Unlock full access