''' DS2000 Spring 2023 Sample code from class - recommendation system Using a content-based filtering approach (**There are many other ways to make recs!**) Start with: a bunch of shows * For each show, we know... - popularity (1-10) - length of episode (# mins) - individual rating (1-10) * Ask the user for a show they've recently watched * Recommend shows with similar newness, populatiy, length, and that are liked by someone Class for a TV Show.... Attributes: - title - popularity - length of ep - individual rating Methods: - __init__ to create an object - others??? bit.ly/sec2_recs ''' class TVShow: def __init__(self, title, pop = 1, length = 30, rating = 1): self.title = title self.pop = pop self.length = length self.rating = rating