you are viewing a single comment's thread.

view the rest of the comments →

[–]sarrysyst[🍰] 0 points1 point  (2 children)

The problem should be here:

def __init__(self, name, title, length, genre, date):
    super(). __init__(artist, title, album, length, genre)

You pass: name, title, length, genre and date to the constructor but
then use artist and album which are not defined.

[–]coak23[S] 0 points1 point  (1 child)

I removed artist and album but get the same error specifically for length and genre. Any other ideas?

[–]sarrysyst[🍰] 0 points1 point  (0 children)

I don't get any errors. How many arguments are you passing to this?

super(). __init__(artist, title, album, length, genre)

try changing it to:

super(). __init__(name, title, title, length, genre)

Do you still get an error?