Computational Physics Tutorial 2

Python Fundamentals

The goal of this tutorial session is to become proficient in using Python built-in types and in writing user-defined functions and classes. Please complete at least sections 1 through 8 of this tutorial and the exercise/homework section.
  1. Built-in types
  2. Variables
  3. Control flow
  4. Classes
  5. Operator overloading
  6. Program organization
  7. File I/O
  8. Common python idioms
  9. NumPy tutorial
  10. Exercise/homework (section 9 is not required in order to solve this)