PIC 16 Python with Applications

You can download the course information here.

Student projects from past courses:
- Winter 2018
- Spring 2018
- Fall 2018

Winter 2019 Tentative Course Schedule

Week 1

  • 01/07 Lecture 1: Course Overview
    – Follow instruction in GettingStarted.pdf on CCLE
    – Reading material: Python tutorial 1 and 2.1.2
  • 01/09 Lecture 2: Python Basics - Basic Data Types, commenting, list, dictionary, functions, modules
    – Reading material: Python tutorial 3.1.1, 3.1.2, 3.1.4, 5.1, 5.5
  • 01/11 Lecture 3: Python Basics - Control Flow, Functions
    – Reading material: Python tutorial 4.1 - 4.7

Week 2

  • 01/14 Lecture 4: Python Basics - Data Structures
    – Reading material: Python tutorial 5.2 - 5.5
  • 01/16 Lecture 5: Python Basics - Functional Programming
    – Reading material: Python tutorial 6.1, 8.1 - 8.4, 5.7
  • 01/18 Lecture 6: Python Basics - Classes and Objects, Magic Methods
    – Reading material: tutorialspoint

** Homework 1 due Friday by 5pm

Week 3

  • 01/21 Luther King, Jr. Holiday (No Class)
  • 01/23 Lecture 7: Classes and Objects, Magic Methods ctd
  • 01/25 Lecture 8: Regular Expressions I
    – Reading material: tutorial
    Cheat sheet
    – To test your regular expressions: pythex

** Homework 2 due Friday by 5pm

Week 4

** Homework 3 due Friday by 5pm

Week 5

  • 02/04 Lecture 12: Visualization III: Pandas, Matplotlib and Numpy
    Pandas Tutorial
    – Pandas Basics Cheat Sheet (on CCLE)

  • 02/06 Lecture 13: GUI I: Tkinter
    An Introduction To Tkinter
  • 02/08 Lecture 14: GUI II: Tkinter bouncing ball example

Week 6

  • 02/11 Lecture 15: GUI III: Inheritance
    Executing Modules as Scripts
    Class Inheritance and Overloading Methods

  • 02/13 Lecture 16: Page-Rank algorithm
    – https://networkx.github.io/documentation/stable/tutorial.html#creating-a-graph
    – Read from “Creating a graph” to “Directed graphs”
    – https://en.wikipedia.org/wiki/PageRank
    – (Optional)https://www.geeksforgeeks.org/page-rank-algorithm-implementation

  • 02/15 Lecture 17: Image Processing I: Grey-scale images and adding noise to an image
    Matplotlib image tutorial

** Homework 4 due Monday by 5pm

Week 7

  • 02/18 President’s Day Holiday (No Class)

  • 02/20 Lecture 18: Image Processing II: masks
    Blurring for Beginners

  • 02/22 Lecture 19: Image Processing II (ctd): Uniform blur, Gaussian blur, edge detection
    Blurring for Beginners

** Homework 5 due Monday by 5pm

Week 8

** Homework 6 due Wednesday by 5pm

Week 9

  • 03/04 Lecture 23: Scrapy ctd

  • 03/06 Lecture 24: NLTK
    – Read the introduction to Chapter 1 of the NLTK Book.
    – Follow 1.2, 1.3, 1.4
    – Follow Chapter 1, section 3 (all)
    – Skim Chapter 1, section 5. This will give you a good overview of the issues in natural language
    – Skim Chapter 3 for processing raw text processing.

** Homework 7 due Wednesday by 5pm

Week 10

** Homework 8 due Friday by 5pm

Final exam: 2019.03.19, 8 AM - 11 AM