# Song Example # Keep trace of song information. class Song: def __init__(self, the_name, the_duration_min, \ the_duration_sec, the_artist): self.name = the_name self.duration_min = the_duration_min self.duration_sec = the_duration_sec self.artist = the_artist def get_duration(self): return "{0:d}:{1:02d}".format( \ self.duration_min, self.duration_sec) def __str__(self): return f'''Name: {self.name} Duration: {self.get_duration( )} Artist: {self.artist}'''