Special software is required to use some of the files in this section: .py and .zip.
Given the programming content of 20.180's assignments and the superb tutorials composed by its TAs, the class is assumed to have some experience with Python®. So, rather than offer a purely introductory tutorial to programming + Python®, the 20.181 TAs offered a short refresher course during office hours after the first lecture session.
Python®+Emacs+Shell cheat sheet (PDF)
If you still crave more Python® tutorials here is a list of 300 Python® Tutorials. You may also find the official Python® documentation to be handy.
Code for 20.181 Refresher Course (ZIP) (The ZIP file contains: fib.txt, fib_module.py, and fibonacci_tutorial.py.)
Start with file fib_module.py. This file defines a function called calc_fib that we will use in method 1.
(In this class we will often start with a big code base that someone else has developed, and we will write some small part which utilizes this pre-existing code. When you are supposed to hijack others' code, you will be told to do so explicitly and the code will be provided to you. In all other cases, using code you found on the internets is not acceptable. So please don't.)
For this tutorial we'll be working on emacs. Emacs is like pico (which you used last term in 20.180), the text editor on MIT server, except with more functionality. But you can use whichever you're comfortable with. A few additional emacs tips:
Python® code written during the refresher course, with some associated comments: OH1_commentedcode.txt (TXT)