Skip to main content
PY4E with AI
  • Lessons
  • OER
  • Courses
  • Login

Python for Everybody with AI (PY4E AI)

Learn Python with guidance on using AI tools responsibly.

1: Why Program?

We learn why one might want to learn to program, and look at the basic issues with learning to program.

2: Variables, expressions and statements

We learn how to make variables and store data in those variables.

3: Conditional Execution

We look at how Python executes some statements and skips others.

4: Functions

Take a brief look at how Python implements the 'store and use later' programming pattern.

5: Loops and Iterations

We look at how Python repeats statements using looping structures.

6: Strings

We look at how Python stores and manipulates textual data using string variables and functions.

7: Files

We learn how to open data files on your computer and read through the files using Python.

8: Lists

We look at Python's simplest data structure - the list. Lists can store more than one item in a variable.

9: Dictionaries

The dictionary data structures allows us to store multiple values in an object and look up the values by their key.

10: Tuples

The tuple is a Python data structure that is like a simple and efficient list.

11: Regular Expressions

Regular Expressions allow us to search for patterns in strings and extract data from strings using the regular expression programming language.