Introduction to Python


Chang Chung worked as a Statistical Programmer and Data Archivist at the Office of Population Research at Princeton University. He earned his Ph.D. in Sociology from the University of South Carolina and M.S.E. in Systems Engineering from University of Pennsylvania.

5/07/2015 from 9:30 AM to 4:00 PM ~ 217 Wallace Hall
5/08/2015 from 9:30 AM to 4:00 PM ~ 217 Wallace Hall
5/11/2015 from 9:30 AM to 4:00 PM ~ 217 Wallace Hall

Python is a very popular, general-purpose, multi-paradigm, open-source, scripting language. It is designed to emphasize code readability and has a clean syntax with high level data types. It is well-suited for interactive work and quick prototyping, yet it is powerful enough for writing large applications. In this full-day workshop, attendees are introduced to basic Python syntax and to its ecosystem. See the workshop syllabus for objectives.

This workshop is for those who have some experience in using at least one scripting language (such as Stata, R, MATLAB, Perl, Ruby, ...). It is assumed that participants can use a text editor and are able to execute a script file from a shell command line.
Lecture, quiz, and demonstration. Attendees are welcome to follow along with the demonstrations, and to try to answer quiz items.
Python can be installed and used in different ways. In this workshop, I will use IPython Notebook environment for demonstration. All the lab PC's will have IPython Notebook Installed as well.

If you rather use other environments, then you are welcome to bring your own laptop computer. Free Anaconda distribution is available here. Other environments (for example, command line Python and emacs editor) are OK, too.

Since Python 3 is not backward compatible and not all the modules are upgraded into Python 3, we will use Python 2 (2.7 as of writing this).