New: The Python 3 version of the book and course material is available at www.py4e.com. This site is maintained for those who want to continue to learn Python 2.
The goal of this site is to provide a set of materials in support of my Python for Informatics: Exploring Information book to allow you to learn Python on your own. This page serves as an outline of the materials to support the textbook.
You can download the exercises, audio, and video lectures to your local computer so you can play them locally. This can be done with either a Right-Click or a Control-Click in most browsers.
- Welcome Lecture - (YouTube, Audio podcast for all lectures)
- Get your copy of the Python for Informatics: Exploring Information.
- Install the appropriate version of Python and a text editor for your system following these instructions.
- Download Sample code from the book.
- Play with the Auto-grader and write a "hello world" program.
- The course slides have been converted to Google drive and are being translated into 30 languages.
- Chapter 1 - Why program? (YouTube, Audio, Video)
- Chapter 2 - Variables, expressions, and statements
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 2.2, 2.3 (suggest download) - Chapter 3 - Conditional Execution
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 3.1, 3.2 (suggest download) - Chapter 4 - Functions
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 4.6 (suggest download) - Chapter 5 - Loops and iterations
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 5.1 (suggest download) - Chapter 6 - Strings
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 6.7 (suggest download) - Chapter 7 - Files
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: 7.1 (suggest download) - Chapter 8 - Lists
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: Finding and Fixing Errors - Lists of Words (suggest download) - Chapter 9 - Dictionaries
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: Most Common Word (suggest download) - Chapter 10 - Tuples
(YouTube,
Audio,
Video)
• Worked Exercise Screencasts: Top-5 Words (suggest download) - Chapter 11 - Regular Expressions (YouTube, Audio, Video, Regex-Guide)
- When I teach from this book I spend two weeks on Internet History, Technology, and Security between Chapters 11 and 12. Talking about history and technology allows the students to take a mental break from programming and lays the ground work for the second half of the book.
- Chapter 12 - Network Programming (HTTP)
(Slides,
YouTube,
Download Video,
Lecture Audio
Part 1 and
Part 2)
• Worked Exercise Screencasts: 12.4 HTML Scraping with BeautifulSoup (suggest download) - Chapter 13 - Using Web Services (Slides, YouTube, Download Video Part 1, Part 2, and Part 3)
- Chapter 14 - Databases
(Slides,
Lecture Audio
Part 1 and
Part 2)
• SQLite3 Browser: http://sqlitebrowser.org/
Here are archive copies of the various audio, video, PowerPoints, PDFs and closed caption files if you want to reuse these materials in your own courses. All this material (including audio and video) is Copyright Creative Commons Attribution 3.0 unless otherwise indicated.
Here are the materials for the Big Data Workshop.