Navigation
index
next
|
previous
|
AM 129, Fall 2022 documentation
»
Chapter 5. Python - IO, OS functionality, debugging, OOP
Chapter 5. Python - IO, OS functionality, debugging, OOP
ΒΆ
Recap & Outlook
Reading Materials
Python input and output
Reading and writing files
Iterating over lines in a file
File modes
with
statement
Command line arguments
Exercise
Interacting with the OS from Python
os
module: directory and file manipulation
os.path
: path manipulation
Running shell commands
glob
: pattern matching on files
sys
module: system-specific information
Exercise
Exception handling and debugging in Python
Exceptions
Catching exceptions
Python debugging
A short example of object-oriented programming (OOP) in Python
An example: Polynomial interpolation
Inheritance and Chebyshev interpolation
Exercises
Previous topic
SymPy
Next topic
Recap & Outlook
This Page
Show Source
Quick search
Navigation
index
next
|
previous
|
AM 129, Fall 2022 documentation
»
Chapter 5. Python - IO, OS functionality, debugging, OOP