The materials here are split into 4 parts, usually covered in separate sessions during in-person workshops. Each part has lecture notes that the instructor will work from as well as exercise files, both with and without answers (you'll learn more if you don't cheat!).
The lecture notes are meant for reference. The instructor may deviate from them during the workshop, and will cover topics that may not be included there.
You can download all of the files by clicking the green button above and choosing "Download ZIP."
If you download files from the links above, you have to click through to the RAW version of the notebook and download that. If you download directly from the links above, the files won't open because they are web pages, not the raw files.
See the individual directories.
Having trouble with the exercises or still feeling unsure? If you're looking to get a second take on the material or an alternative explanation, try these resources.
See Resources for a listing of general Python resources, tutorials, and reference materials. Links below relate specifically to material covered in this workshop.
Introduction to Python: a complete intro class written in Python notebooks. Includes exercises.
Learn to Program: The Fundamentals: Well reviewed Coursera course with a free option. Basic intro to programming course in Python.
Software Carpentry: Programming with Python: heavy focus on data analysis; includes some basics but also jumps in pretty quickly to pandas and other data analysis topics.
Harvard Data Science Services: Python Workshop materials: workshop materials for Intro and Intermediate Python courses, including notebooks you can interact with in the browser.
Google's Python Class: online materials, videos, and exercises from their two-day intro course.
Dataquest Python Programming: Beginner Course: Dataquest is a subscription service, but you can do an intro course for free. It has online, interactive courses. This is the Python introduction course that covers similar material to this workshop.
CodeAcademy: Python: another subscription service with a free intro course.
Edabit: Interactive python programming challenges
Practice Python: 36 Python programming challenges with answers. Exercises ranked by difficulty of 1 to 4 chili peppers.
Python Exercises: Lots of (usually) short exercises, organized by topic.
Python Quick Reference: useful set of scripts and notebooks by topic to remember (or learn) how to do specific tasks in Python
Python 101: notebook with basic examples. End of the notebook gets into more advanced topics/examples, but a useful collection of snippets for quick reminders on how to do things.