OVERVIEW AND GETTING STARTED
About This Primer
This primer comprises a sequence of instructional videos and Python notebooks covering:
- How to install Python and several integrated development environments
- An introductory guide to the Python language.
The table of contents below provides links to open the notebooks in Google Colab (from which they can also be downloaded), and to open the videos in the TAMIDS YouTube channel.
This primer was created by Matt Hielsberg with support from Texas A&M Institute of Data Science and the Texas A&M University Department of Mathematics.
Quick Start Guide for Learning Python Without Any Software Installation
- Obtain a Google account if you don’t already have one; this is needed to run Google Colab. When opening each notebook, you may need to agree to run the content when prompted by Colab.
- Skip down below to the Python Language Guide and start at Chapter 4
Learning Objectives For This Python Primer
- Learn where to find tutorials, documentation on Python as well as community developed packages.
- Use comments and learn how to incorporate them into the help system.
- Write and evaluate expressions using variable names.
- Use basic data structures including strings, lists, tuples, sets, and dictionaries, among others.
- Understand and use various control flow mechanisms, including looping, functions and exceptions.
- Write functions, understand return values and argument lists, including positional and keyword arguments.
- Understand binding and copies, as well as interning/small integer caching.
- Learn about name resolution, blocks, scope and name spaces.
- Find and use modules and packages.
- Learn about objects, classes and inheritance, including multiple inheritance.
Python Systems and Installation Guide
Chapter 1: Background and Installation
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
1.1 | Background and Installation | Open | Video (3:32) |
Chapter 2: Getting Started with Python Interpreter
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
2.1 | Interpreter | Open | Video (5:25) |
2.2 | Scripts | Open | Video (10:08) |
2.3 | Guidelines | Open | Video (4:21) |
Chapter 3: Getting Started with Jupyter
Python Language Guide
Chapter 4: Introduction
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
4.1 | Help, Docstrings, & Comments | Open | Video (7:06) |
4.2 | Calculator | Open | Video 1 (4:23) Video 2 (3:15) |
4.3 | Comparison, Logical and Bitwise Operators | Open | Video (13:30) |
4.4 | Variables | Open | Video (6:09) |
4.5 | Strings | Open | Video 1 (8:37) Video 2 (3:01) Video 3 (5:46) Video 4 (4:08) |
4.6 | Lists | Open | Video 1 (1:21) Video 2 (2:41) Video 3 (4:43) Video 4 (5:43) |
Chapter 5: Control Flow
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
5.1 | Blocks, Indention | Open | Video 1 (3:36) Video 2 (6:19) Video 3 (10:07) Video 4 (7:45) |
5.2 | Looping Techniques and Conditions | Open | Video 1 (6:45) Video 2 (4:14) |
5.3 | Functions | Open | Video 1 (2:37) Video 2 (3:39) Video 3 (12:08) Video 4 (3:41) |
5.4 | Exceptions | Open | Video 1 (4:17) Video 2 (11:25) Video 3 (2:14) Video 4 (5:20) |
5.5 | Short-Circuit Evaluation | Open | Video (2:47) |
Chapter 6: Data Structures
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
6.1 | Lists Revisited | Open | Video 1 (8:24) Video 2 (17:00) |
6.2 | Stacks and Queues | Open | Video (3:57) |
6.3 | Tuples | Open | Video (5:43) |
6.4 | Sets | Open | Video (8:32) |
6.5 | Dictionaries | Open | Video (9:35) |
Chapter 7: Names
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
7.1 | Objects | Open | Video (7:41) |
7.2 | Assignments Copies | Open | Video (8:27) |
7.3 | Small Integer Caching | Open | Video (5:43) |
7.4 | Name Resolution | Open | Video (14:10) |
7.5 | Modules Packages | Open | Video (9:37) |
Chapter 8: Classes
Section | Topic | Notebook/Colab | Videos |
---|---|---|---|
8.1 | Classes – Inheritance | Open | Video 1 (10:39); Video 2 (8:15) |