Python for Programmers: Reference

Key Points

Firing up Python
  • Python can be used in several different modes.

  • The Jupyter notebook provides an environment for performing computations and also for communicating about them

Individual things
  • Variables are labels attached to values that are stored in the computer memory

  • You can perform operations on variables using operators and functions

  • Objects have functions attached to them – methods

Collections: groups of things
  • Python contains several built-in collection types

  • Numpy extends these with an array type

Repeating operations
  • Repeating operations over items of a collection makes sense

  • Both for and while loops can be used to repeat operations in different cases

Making choices
  • Logical operations can be instantiated using selection

  • Flexible data analysis grows out of thats

Creating reusable chunks with functions
  • Writing functions allows us to modularize our code and reuse it

  • DRY – Don’t repeat yourself

Plotting with Matplotlib
  • Matplotlib is a library for 2D publication-quality scientific visualization

  • MPL makes easy plots easy, and harder visualization possible.

FIXME: more reference material.