Introduction to Python
Overview
Instructor: Richard Lawrence
Time: Friday, February 18, 10:00AM-12:30PM
Location: Blocker 220 and online using Zoom
Prerequisites: HPRC account
This short course covers basic topics in programming using Python.
Course Materials
- Course Notes (Spring 2022): PDF
- Jupyter Notebook (Spring 2022): Intro_Python_fall21_Portal.ipynb
- Colab Jupyter Notebook (Spring 2022): Intro Python spring2022 Colab.ipynb
- Access Instructions: PDF
- Notebook Cheat Sheet: PDF
- Installing Jupyter for use with Course Notebook: Link
Previous Semester Materials
- Course Notes (Fall 2021): PDF
- Jupyter Notebook (Fall 2021): Intro_Python_fall21_Portal.ipynb
- Colab Jupyter Notebook (Fall 2021): Intro Python fall21 Colab.ipynb
- Course Notes (Spring 2021): PDF
- Course Files (Spring 2021): GitHub
- Course Files (Fall 2020): JupyterNotebook
- Notebook Access Instructions: PDF
- Spring 2020 Setup Instructions
- Software Carpentry: Programming with Python (Spring 2020)
- Course Files (Fall 2019): tgz
- Notebook Access Instructions: PDF
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.