Searching for a fix to my problem about syntax error

Viewed 43

My Error Message

I do not know what causes this error! It´s the exact same code in the book I bought about python

I hope someone can help me and tell me what I am missing

def__init__(self, ma, mo, bj, pr): ^ SyntaxError: invalid syntax

Thats the error message!

2 Answers

There should be a space between the def and __init__.

You are missing a space between def and __init__, def__init__(self, ma, mo, bj, pr): must be replaced with def __init__(self, ma, mo, bj, pr):

Related