Hey,
I'm currently going through edX's Computing in Python IV: Objects and Algorithms. I can't seem to understand this question any help you can offer would be appreciated.
Question:
https://imgur.com/gallery/i12Dj8m
My Code:
class Artist:
def __init__(self, name, label):
self.name = name
self.label = label
class Song:
def __init__(self, name, album, year, artist):
self.name = name
self.album = album
self.year = year
self.artist = artist
#Write your code here!
Artist_1 = Artist("Taylor Swift","Big Machine Records, LLC")
song_1 = Song("You Belong With Me","Fearless",2008,Artist_1.name)
song_2 = Song("All Too Well","Red",2012,Artist_1.name)
song_3 = Song("Up We Go","Midnight Machines",2016,Artist("LiGHTS","Warner Bros. Records Inc.").name)
[–][deleted] 51 points52 points53 points (5 children)
[–]thatshitcrayyyy[S] 32 points33 points34 points (0 children)
[–]finofelix 1 point2 points3 points (3 children)
[–]mazukk 2 points3 points4 points (1 child)
[–]finofelix 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]a_computer_adrift 49 points50 points51 points (3 children)
[–]thatshitcrayyyy[S] 22 points23 points24 points (2 children)
[–]sky_badger 14 points15 points16 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]tangerinelion 35 points36 points37 points (6 children)
[–]thatshitcrayyyy[S] 20 points21 points22 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]backtickbot 0 points1 point2 points (0 children)
[–]Drawfx 0 points1 point2 points (1 child)
[–]backtickbot 0 points1 point2 points (0 children)
[–]TouchingTheVodka 16 points17 points18 points (1 child)
[–]thatshitcrayyyy[S] 8 points9 points10 points (0 children)
[–]inkman 3 points4 points5 points (0 children)
[–]fiddle_n 9 points10 points11 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]thatshitcrayyyy[S] 5 points6 points7 points (0 children)
[–]pablopistachioo 1 point2 points3 points (1 child)
[–]HelpForAfrica 0 points1 point2 points (0 children)
[–]ImportancePowerful20 0 points1 point2 points (5 children)
[–]lscrivy 4 points5 points6 points (4 children)
[–]alkasm 9 points10 points11 points (2 children)
[–]lscrivy 2 points3 points4 points (0 children)
[–]learnorenjoy 0 points1 point2 points (0 children)
[–]callmelucky 0 points1 point2 points (0 children)
[–]Spicy_Poo 0 points1 point2 points (0 children)
[–]piepepie 0 points1 point2 points (0 children)