Python provides many functions that we can
call
. For example, previously we called the function
type
in order to determine the type of a value. We will analyze the function call, see more built-in functions, and take a look at the Python documentation that lists and describes the available functions.
A module contains Python code. There are modules in the Python Standard Library that we can import and then use. We can also write our own modules to perform computation or do specific tasks.
math
module as an example.
Slides: Individual slides for viewing , 6-up layout for printing
Examples:
my_module.py
,
fah2cel.py
,
script.py
,
script2.py
To download the above files, right-click (Windows) or command-click (Macs) on the filename and then select "Save link as". This way you choose where the files will be saved, instead of having your computer save to the default folder (from which you will later have to move your files for organization).
Questions and Answers: check the answers — after you try them on your own!