Skip to content
Advertisement

TypeError: __init__() takes 2 positional arguments but 4 were given

My code is giving the error as TypeError: __init__() takes 2 positional arguments but 4 were given. tried searching for an extra argument but couldn’t get one.

Tried previously answered questions but didn’t get any proper solution.

My code is as follows:

JavaScript

compiler gives runtime error as follows

JavaScript

Advertisement

Answer

Comments inside the code.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement