Python Object-Oriented Python Advanced Objects Double

Kars Jansens
Kars Jansens
5,348 Points

I don't understand this {python}


I have a problem. I do not even understand a bit of the this. I do not even know how to start with this accept "class Double()". I would like if someone could explain everything what's happening in my code and what I need to do. I really can use some help.


This is the question: Now override new. Create a new int instance from whatever is passed in as arguments and keyword arguments. Return that instance.

You should remove the pass.

1 Answer

Steven Parker
Steven Parker
207,980 Points

Overriding "__new__" just means you will create a method by that name. And in that method, you will create a new "int" and return it.

When you get completely stuck, it can often be helpful to look at the answers to other questions previously asked about the same challenge.