Navigation

  • index
  • next |
  • previous |
  • AM129 documentation »
  • Chapter 5. Python - IO, OS functionality, debugging, OOP

Chapter 5. Python - IO, OS functionality, debugging, OOPΒΆ

Google drive folder with Jupyter Notebooks used in class: Jupyter Notebooks from class

  • 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

Logo of AM129

Previous topic

SymPy

Next topic

Recap & Outlook

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • AM129 documentation »
  • Chapter 5. Python - IO, OS functionality, debugging, OOP
© Copyright 2024, Ian May, Dongwook Lee, and Sean Riedel. Created using Sphinx 8.0.2.