Save this video — free

Python (Fall 2026) Module 9-5: Algorithms and Solving A8 Part 2

Bill Moseley, Ph.D. - Computer Science Educator · 8:03 · Watch on YouTube

Python (Fall 2026) Module 9-5: Algorithms and Solving A8 Part 2 Watch on YouTube →

Overview

Bill Moseley refactors email-address cleanup in Python by creating a reusable `cleanHalf` function that keeps alphanumeric characters plus periods, hyphens, and underscores, stopping at the first invalid character. He applies it to both halves of an address, restores the reversed first half, joins the halves with `@`, and returns the cleaned string from `cleanEmail`.

Key takeaways

Chapters

0:00 Build `cleanHalf` to Filter Email-Address Characters
4:00 Clean Both Halves and Restore the Reversed First Half
6:30 Reassemble and Return the Cleaned Email Address

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

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.