PIC 16A Python with Applications I
You can download the course information here.
Winter 2021 Tentative Course Schedule
Week 1
-
01/04 Lecture 1: Course Overview
– Follow instructions in GettingStarted.pdf on CCLE
– Reading material: Python tutorial 1 and 2.1.2 -
01/06 Lecture 2: Python Basics - Basic Data Types, Commenting, list
– Reading material: Python tutorial 3.1.1, 3.1.2, 3.1.3, 5.1 -
01/08 Lecture 3: Python Basics - Modules, Functions
– Reading material: Python tutorial 4.1 - 4.6
Week 2
-
01/11 Lecture 4: Python Basics - More on functions
– Reading material: Python tutorial 4.7 -
01/13 Lecture 5: Python Basics - Dictionaries, Tuples, Sets, Functional Programming
– Reading material: Python tutorial 5.2 - 5.5 -
01/15 Lecture 6: Python Basics - Exception Handling
– Reading material: Python tutorial 6.1, 8.1 - 8.4
** Homework 1 due Wednesday by 5pm
** Quiz 1 on Wednesday
Week 3
-
01/18 Martin Luther King, Jr. holiday, no class
-
01/20 Lecture 7: Python Basics - Classes and Objects
– Reading material: tutorialspoint -
01/22 Lecture 8: Python Basics - Iterators and Generators
– Reading material: Python tutorial 9.8 - 9.10
** Homework 2 due Wednesday by 5pm
** Quiz 2 on Wednesday
Week 4
-
01/25 Lecture 9: Python Basics - More built-in functions, Executing Modules as Scripts
– Python tutorial 5.6
– Executing Modules as Scripts
– Built-in Functions -
01/27 Lecture 10: Inheritance
– Class Inheritance and Overloading Methods -
01/29 Lecture 11: Input/Output (Console, text files, CSV)
– Reading and writing files
– CSV module
** Quiz 3 on Wednesday
Week 5
-
02/01 Lecture 12: Regular Expressions I - Basics, Groups, and Quantifiers
– Reading material: tutorial
– Cheat sheet
– To test your regular expressions: pythex -
02/03 Lecture 13: Regular Expressions II
-
02/05 Lecture 14: Catch up + Haiku
** Homework 3 due Monday by 5pm
** Quiz 4 on Wednesday
Week 6
-
02/08 Midterm exam
-
02/10 Lecture 15: Visualization: Matplotlib and pyplot
– Recursion
– Matplotlib tutorial -
02/12 Lecture 16: NumPy
– Numpy tutorial – Matplotlib tutorial
** Homework 4 due Wednesday by 5pm
Week 7
-
02/15 Presidents’ Day holiday: No class
-
02/17 Lecture 17: More on plotting
– Numpy tutorial -
02/19 Lecture 18: Grey-scale images and adding noise to an image
– Matplotlib image tutorial
** Homework 5 due Wednesday by 5pm
** Quiz 5 on Wednesday
Week 8
-
02/22 Lecture 19: Uniform Blur, Gaussian Blur, Edge Detection
– Blurring for Beginners -
02/24 Lecture 20: Edge detection continued.
-
02/26 Lecture 21: GUI Tkinter I: Drawing Lines and Shapes
– Python GUI Programming
Week 9
-
03/01 Lecture 22: GUI TkInter II - Widgets, Events and Bindings
-
03/03 Lecture 23: Pandas
– Pandas Tutorial
– Pandas Basics Cheat Sheet (on CCLE) -
03/05 Lecture 24: Pandas II
– Pandas Tutorial
** Homework 6 due Monday by 5pm
** Quiz 6 on Monday
Week 10
-
03/08 Lecture 25: NLTK (Natural Language Toolkit) - Concordance, Contexts, Dispersion
– NLTK book -
03/10 Lecture 26: Lecture 26: Machine Learning: SVM
– Machine learning: the problem setting
– Scikit-learn: Support Vector Machines (SVMs)
- 03/12 Lecture 27: Final Review
** Homework 7 due Monday by 5pm