Save this video free

Python (Fall 2026) Module 14-11: A14 Explanation Part 1

Bill Moseley, Ph.D. - Computer Science Educator · 9:05 · Watch on YouTube

Part of Bakersfield College COMP B10. See all 23 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.

Python (Fall 2026) Module 14-11: A14 Explanation Part 1 Watch on YouTube →

Overview

Bill Moseley outlines a Python playlist assignment built around a Song class with title, year, and rating properties, rating validation, song display, and a list managed through add and remove functions. The menu must support viewing, adding, removing, updating ratings, and exiting; optional extensions use pickle for persistence or a Playlist class, with a fruit stand application demonstrating the same class, list, and menu patterns.

Key takeaways

Chapters

0:00 Playlist Assignment Requirements: Song Class, Ratings, and Menu
5:49 Optional Pickle Persistence and a Playlist Class
7:27 Fruit Stand Demo: Mapping Inventory Operations to Songs

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

Transcript excerpt

0:00 Now, I want to spend the bulk of our time talking  today on the object-oriented playlist assignment. So, let me first jump over to the assignment  page here and go through the requirements, because I want you to understand the requirements  thoroughly. So, we're creating an application that allows us to manage a playlist of songs. And  so, we are going to, our primary object for this playlist is going to be a class that represents a  song. Okay. So, at a minimum, the song class needs to have properties that represent the title of the  song, the year it was produced, and a rating of

0:54 some kind. I don't care what data type you use for  the rating. You could use a string that contains a number of stars. You could use a float. You  could use an integer. You decide what the rating is going to be, but it has to have at least those  three. Now, can you have other properties like the artist or whatever? Yeah, sure. Just at a minimum,  each song needs to have those three things. Okay, those, those are your properties. The song's  initialization method should accept arguments for title, year, and rating. So in other words,  when you create an instance of that class, you are passing it those three pieces of data.  Again, can you do more? Yes. But at a minimum,

1:49 your initialization method should accept arguments  for title, year, and rating. Now, if you don't know how to do those things, I welcome you to look  back on some of the other code that we looked at last time we met, because that's all available  for you. The song's class should have methods for updating the rating and printing the info for  the song. So, when I say updating the rating,

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.