Introduction to Python


Instructor: Yang Liu

Time: Friday, February 8, 10:00AM-12:30PM

Location: SCC 102.B

Prerequisites: None

This short course covers basic topics in programming using Python.

Course Materials

  • Course Files (Spring 2019): tar.gz
  • Notebook Access Instructions: PDF
  • Notebook Cheat Sheet: PDF
  • Installing Jupyter for use with Course Notebook: Link


This course focuses, among others, on the following topics:

  • Constants and Variables
  • Data Types: Numbers, Strings, and Lists
  • Control Statement: If/Else, For, While
  • Functions
  • Scripts and Modules
  • File Input and Output
  • Errors and Exceptions
  • Dictionaries
  • Sorting
  • Regular Expression
  • Slicing, List Comprehension, List Assignment and Copy

Note: During the class sessions many aspects of the material will be illustrated live via a Jupyter notebook.