Python Fun!

It is assumed that the reader is not new to general constructs in programming such as variables, control flow, functions, and ideas of object-oriented programming. As a result, these pages spend very little time on explaining these topics—let alone explain the theory behind them. If the reader is not comfortable with programming in general, then it may be better first read How to Think Like a Computer Scientist by Wentworth, Elkner, Downey, and Meyers.

There is definitely a plethora of typos and careless mistakes I made while writing these. If you find any, please let me know about them so I can fix them as soon as possible! :)

  1. Getting started
  2. Stack traces and errors
  3. Values and built-in data types
  4. Operations
  5. Variables
  6. Conditionals
  7. Functions
  8. Loops
  9. Comments and documentation
  10. String operations
  11. Tuples and lists
  12. NumPy arrays and vectorization (TODO)
  13. Objects and classes (TODO)