LE21: 11/01/2021
Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2020/2021
—
Lecture #21 :: 11/01/2021
Goals
By the end of this class, the student should be able to:
Give an overview of the Modules available in the Python Standard Library
Describe the contents of the math
, time
and random
modules
Create programmer own modules
Describe namespaces, identifier scopes and lookup rules
Content
Python Modules
Random numbers [8.1]
The time
module [8.2]
The math
module [8.3]
Creating your own modules [8.4]
Namespaces [8.5]
Scope and lookup rules [8.6]
Three import
statement variants [8.8]
Packages
Bibliography
Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers,
How to Think Like a Computer Scientist — Learning with Python 3, Release 3rd Edition, 2020
[PDF] (Chapter 8)
The Python Tutorial,
6. Modules, Python 3.8.7 documentation, January 03, 2021
[HTML] (Section 6)
The Python Standard Library,
Numeric and Mathematical Modules, Python 3.8.7 documentation, January 03, 2021
[HTML]
Materials
J. Correia Lopes,
Study materials,
GitHub (Notebook 21)
-
-
Summary