Introduction to Python

Overview

Instructor: Richard Lawrence

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

Location: Zoom session only

Prerequisites: HPRC account

This short course covers basic topics in programming using Python.

Course Materials

  • Course Notes (Spring 2021): PDF
  • Course Files (Spring 2021): GitHub
  • Access Instructions: PDF
  • Notebook Cheat Sheet: PDF
  • Installing Jupyter for use with Course Notebook: Link

Previous Semester Materials

Agenda

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.