/intro-to-python

DDL Intro to Python iPython Notebook

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

Intro to Python

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

Materials

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

Syllabus

The outline of the Workshop is as follows:

  1. Learning how to learn how to program
  2. Prerequisites
  3. Output and Input
  4. What is Programming?
  5. Variables
  6. Calculation
  7. Comparison
  8. Simple Data Types
  9. Strings
  10. Conditionality
  11. Logic
  12. Repetition
  13. Functions
  14. Lists, Tuples, Sets and Dictionaries
  15. File I/O
  16. APIs
  17. Object Oriented Programming
  18. A Time Formatter

License

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.