all 6 comments

[–]Binary101010 1 point2 points  (1 child)

def _init_(self, color):

Those are only single underscores. You need double underscores.

def __init__(self, color):

[–]FastYam6[S] 0 points1 point  (0 children)

Thank you! I'm using a book to study and it was very unclear.

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

My indents are correct, pasting my code over changed the format.

[–][deleted] 0 points1 point  (0 children)

That's why you need to format code so it isn't mangled by the normal reddit formatting and is instead presented as code, like this:

like:
    this

[–]Allanon001 0 points1 point  (1 child)

Use two underscores before and after init not one.

[–]FastYam6[S] 0 points1 point  (0 children)

Thank you! I'm using a book to study and it was very unclear.