Bakersfield College COMP B10
47 lectures with notes
Every lecture with its full transcript and chapters, and one search across all 47 lectures.
Python (Fall 2026) Module 14-11: A14 Explanation Part 1
Build a Python song playlist with a Song class, list operations, and a repeatable menu, using the fruit stand example as a guide.
Python (Fall 2026) Module 14-12: A14 Explanation Part 2
Refactor Python fruit-list operations into functions, then practice reconstructing the code and checking it against the assignment requirements.
Python (Fall 2026) Module 14-3: Class Methods
Python's `self` lets a car's `driveCar` method update that instance's mileage without affecting other cars.
Python (Fall 2026) Module 14-4: Initializing a Class
Python's `__init__` method sets up each new object with its own properties and data.
Python (Fall 2026) Module 14-7: Using Classes in a Program
A Python car inventory shows how lists organize class instances for buying, listing, and selling objects.
Python (Fall 2026) Module 13-1: Introducing Recursion
Recursion is a function calling itself until an end case tells the nested calls to unwind.
Python (Fall 2026) Module 13-2: Writing Recursive Code
A recursive function needs a base case to stop descending and allow its calls to unwind.
Python (Fall 2026) Module 13-3: Recursion in Practice
Recursion handles nested lists of unknown depth by processing each item and recursively descending into sublists.
Python (Fall 2026) Module 13-4: Recursive Tree Traversal
A recursive Python function can count every leaf item in arbitrarily nested lists by adding each sublist’s returned count.
Python (Fall 2026) Module 12-7: File Challenge 1
Build a Python crawler that extracts links from HTML and limits traversal to bmoseley.com.
Python (Fall 2026) Module 12-8: File Challenge 2
Use `ATM_data.txt` to load and save Python ATM balances across program sessions, including when the file does not yet exist.
Python (Fall 2026) Module 12-1: Introducing File Usage in Python
Python files preserve data between program runs, but the mode passed to `open()` determines whether existing contents are kept or erased.
Python (Fall 2026) Module 12-2: Reading and Writing Files
Python file methods read text sequentially, while opening mode determines how writing affects existing data.
Python (Fall 2026) Module 11-1: Iteration and Collections
Use Python `for` loops, multiple assignment, and `enumerate()` to process collections and number their items.
Python (Fall 2026) Module 9-2: Creating a Sorting Algorithm
Selection sort repeatedly extracts the smallest remaining list value and appends it to a sorted output list.
Python (Fall 2026) Module 9-4: Algorithms and Solving A8 Part 1
Build the email extractor by breaking validation into small steps, starting with candidate detection and boundary-based string cleanup.
Python (Fall 2026) Module 9-5: Algorithms and Solving A8 Part 2
A reusable Python helper cleans both halves of an email address before `cleanEmail` rejoins and returns them.
Python (Fall 2026) Module 9-7: S9 Explanation
Rank three Moon-phase passages by measurable features such as word length, vocabulary variety, sentence length, and punctuation.
Python (Fall 2026) Module 8-2: String Methods for Manipulation
Python's `split()` and `join()` turn strings into lists and back, enabling tasks like counting words and changing separators.
Python (Fall 2026) Module 8-4: String Slicing
Python strings support character-by-character cleanup and flexible slicing, including the useful reverse operation `[::-1]`.
Python (Fall 2026) Module 8-7: A8 Explanation
Build an email extractor by splitting text into words, finding @ signs, and cleaning punctuation from candidate addresses.
Python (Fall 2026) Module 7-6: Fun With Colors
Use ANSI escape sequences and small Python helper functions to add reusable color to command-line output.
Python (Fall 2026) Module 7-7: Variable Scope and Globals
Python functions can read globals, but use `global` to reassign them only when you accept tighter coupling.
Python (Fall 2026) Module 7-1: Reviewing the ATM Assignment
Build a two-account Python ATM with deposits, balance checks, and withdrawals that prevent overdrafts.
Python (Fall 2026) Module 7-4: Parameters and Return Values
Python parameters pass information into functions, while return values send results back to the caller.
Python (Fall 2026) Module 6-7: Introducing for Loops
Python for loops process each sequence item once, with range controlling numeric start, stop, and step.
Python (Fall 2026) Module 6-8: A6 Explanation
Build a Python ATM simulator that handles deposits, withdrawals, account balances, and validated menu input.
Python (Fall 2026) Module 6-5: Loops in Practice Guessing Game
Build a replayable Python guessing game with nested loops, configurable difficulty, and guess tracking.
Python (Fall 2026) Module 5-9: Command Line UI Tricks
Use Python string formatting and fixed-width text to make command-line programs clearer and easier to use.
Python (Fall 2026) Module 5-10: A5 Explanation
Build a menu-driven Python calculator with R/T choices, shape-specific formulas, and feedback for invalid choices.
Python (Fall 2026) Module 5-2: Introducing Control Structures
Python if statements use Boolean conditions and indentation to choose whether a code block runs.
Python (Fall 2026) Module 4-1: Introduction and Type Conversions
Python input is text by default, so convert values to compatible types before calculations.
Python (Fall 2026) Module 4-2: Operators and Expressions
Python operators determine how expressions calculate values, return remainders, and follow PEMDAS precedence.
Python (Fall 2026) Module 4-4: A4 Explanation
A comments-first Python workflow for building a useful calculator with user input, numeric conversion, a formula, and formatted output.
Python (Fall 2026) Module 3-1: Introducing Lists
Python lists preserve item order, use zero-based indexes, and can be changed after creation.
Python (Fall 2026) Module 3-5: List Methods
Python list methods can inspect, edit, and reorder lists, with most edits changing the original list in place.
Python (Fall 2026) Module 2-7: Transforming Strings
Use Python string methods such as `strip()` and method chaining to clean and transform text efficiently.
Python (Fall 2026) Module 2-11: A2 Explanation (Using online-python.com)
Build a Mad Libs program by collecting and cleaning inputs, then inserting them into a multiline Python string.
Python (Fall 2026) Module 2-12: A2 Explanation (using Pycharm)
Build a Python Mad Libs program by collecting five words and inserting them into a formatted story.
Python (Spring 2026) Module 2-1: About Python
Python's readable syntax and interpreted workflow make it accessible for learning, while compiled languages can run more efficiently at large scale.
Python (Fall 2026) Module 2-2: Procedural Programming and Variables
Python runs procedural code line by line, while variables store changeable values under case-sensitive names.
Python (Fall 2026) Module 2-3: Data Types
Python strings, integers, floats, and Booleans each behave differently, so choose appropriate types and name variables clearly.
Python (Fall 2026) Module 2-4: Understanding Functions
Learn to distinguish Python functions that perform actions from those that return values, and how to use their results.
Python (Fall 2026) Module 2-5: S1 Sandbox Challenge
Use Python turtle to draw shapes and see how variables and integer-converted input make their dimensions adjustable.
Python (Spring 2026) Module 1-3: Syllabus Review
Bill Moseley’s Python course prioritizes regular practice, communication, and learning through unlimited assignment revisions.
Python (Spring 2026) Module 1-4: AI Policy and Use
Use AI to support Python learning, not to skip the practice needed to understand and write code.
Python (Spring 2026) Module 1-6: Completing A1 Hello World
Create and submit a1.py by printing "hello world" in PyCharm and uploading the file to Canvas.