Welcome to AI Programming with Python

Start using AI techniques and developing skills related to programming, linear algebra, and neural networks.

Why Python Programming

Start coding with Python, drawing upon libraries and automation scripts to solve complex problems quickly.

Data Types and Operators

Control Flow

Functions

Scripting

Lab Classifying Images

In this project, learners will be testing their newly-acquired Python coding skills by using a trained image classifier. They will need to use the trained neural network to classify images of dogs (by breeds) and compare the output with the known dog breed classification. Learners will have a chance to build their own functions, use command line arguments, test the runtime of the code, create a dictionary of lists, and more.

NumPy

Learn how to use all the key tools for working with data in Python: Jupyter Notebooks, NumPy, Anaconda, Pandas, and Matplotlib.

Pandas

Matplotlib and Seaborn Part 1

Learn how to use Matplotlib to choose appropriate plots for one and two variables based on the types of data you have.

Matplotlib and Seaborn Part 2

Introduction

Learn the foundational math needed for AI success—vectors, linear transformations, and matrices—as well as the linear algebra behind neural networks.

Vectors

Linear Combination

Linear Transformation and Matrices

Vectors Lab

Linear Combination Lab

Linear Mapping Lab

Linear Algebra in Neural Networks

Introduction to Neural Networks

Gain a solid foundation in the latest trends in AI: neural networks, deep learning, and PyTorch.

Implementing Gradient Descent

Training Neural Networks

Deep Learning with PyTorch

Create Your Own Image Classifier

How Do I Continue From Here

24. Solution: List and Membership Operators

Quiz: List Indexing

Here is a good code line to use for this task:

num_days = days_in_month[month - 1]```


### Quiz: Slicing Lists
Here is a good code line to use for this task:

print(eclipse_dates[-3:])“`

Quiz Question 3

Here are our explanations for the answers shown below:

sentence1 is a string, and is therefore an immutable object. That means that while you can refer to individual characters in sentence1 (e.g., you can write things like sentence1[5]) you cannot assign value to them (you cannot write things like sentence1[5] = 'a'). Therefore the third expression (sentence1[30]=”!”) will result in an error.

sentence2 is a list, and lists are mutable, meaning that you can change the value of individual items in sentence2:

  • In the first expression (sentence2[6]=”!”) we changed the value of the last item in sentence2 from “.” to “!”.
  • In the second expression (sentence2[0]= “Our Majesty”) we changed the value of the first item in sentence2 from “I” to “Our Majesty”.
  • In the last expression (sentence2[0:2] = [“We”, “want”]) we used slicing to simultaneously change the value of both the first and the second item in sentence2 from “I” and “wish” to “We” and “want”.