Save this video free

Python (Fall 2026) Module 8-7: A8 Explanation

Bill Moseley, Ph.D. - Computer Science Educator · 19:26 · Watch on YouTube

Part of Bakersfield College COMP B10. See all 47 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Bill Moseley explains the A8 email-extractor assignment by showing how to find candidate addresses in text and remove punctuation with Python string operations. He outlines three functions (extract emails, remove duplicates, and check list membership) and demonstrates how to test and troubleshoot them using the Abraham Lincoln and Taylor Swift starter text.

Key takeaways

Chapters

0:00 Email Address Rules for Finding Valid Candidates
6:05 Use Python find, split, and Slicing to Clean Email Text
11:28 Build and Test the A8 Extractor Functions

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 So that's sort of your warm-up, right? I'm  giving you some ideas. A8 takes that a little bit further. And what I'm going to give you is  called the email extractor. Now, this is an actual and very unfortunate real world scenario, right?  This is how we end up on all of those terrible spam lists out there in the world. Because what  we have are programs like this that go out there, look at a web page, and they, they grab all of  the email addresses from that web page and put them into a database. And then those databases  get sold to people who want to send you ads for, you know, free prescription medicine that I won't  name the specifics of, and things like that. So,

1:00 yeah, you know what I'm talking about. So, the,  this is actually a real world application of this text processing that is very, very  common and pretty useful. But for those, that list of email addresses to be valid,  right, they have to be real email addresses that have certain characteristics. Now, if I  write an email address on the board, and I, I don't have a pen here, unfortunately, but if I  were to write an email address on the board versus another piece of text, how would you know that  the thing I'm showing you is an email address? That sign, right? That's the, that's the big  giveaway. That's pretty bright. I'm not sure that'll show up. Thank you, though. I appreciate  it. I think I'm, I'm going to just use my

1:56 amazing ability to write text up here.  So, if I say Bill Moseley bakersfield college.edu, do we all agree that  that's an email address? Okay. That has an at sign. Is that an  email address? How do you know?

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Bill Moseley, Ph.D. - Computer Science Educator.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.