The iPython notebooks and sample code for Introductory Python courses
You're in the right place if you're looking for the material for one of the following courses:
- District Data Labs: Python for new Programmers
The Workshop.pynb
can be viewed on the iPython nbviewer application by using the following link: nbviewer Intro to Python. If you'd like to run an interactive version of the notebook you must have iPython installed, then simply run:
$ ipython notebook Workshop.pynb
After cloning or downloading the repository to a working directory.
The example program that we discussed in class, clock.py
is a simple program that can be used every day to print out formatted timestamps in documents that you're preparing. It is also a simple program for instruction purposes. You can run this program by:
$ python clock.py -code
Mon Mar 10 08:43:26 2014 -0400
The outline of the Workshop is as follows:
- Learning how to learn how to program
- Prerequisites
- Output and Input
- What is Programming?
- Variables
- Calculation
- Comparison
- Simple Data Types
- Strings
- Conditionality
- Logic
- Repetition
- Functions
- Lists, Tuples, Sets and Dictionaries
- File I/O
- APIs
- Object Oriented Programming
- A Time Formatter
The materials in this repository are licensed under an Apache2 License, which simply states that you may copy and use this code as you like, including for a commercial use with or without modifications. You cannot, however, use any trademark in this package or hold us liable for any content. Finally, if you do choose to use the material you must include the Apache2 license, state any changes, and include our copyright notices.