Python Object-Oriented Python Advanced Objects Double

Challenge task 2 of 3

Where am I going wrong and what is this asking me?

doubler.py
class Double(int):
    def __new__(self, *args):
        self = int.__new__ 
        return self
    ```

1 Answer

Mark Sebeck
MOD
Mark Sebeck
Treehouse Moderator 28,950 Points

For your argument you don't need *args. Just any name will do. And you want to return the argument casted as an int not self. Something like.

return int(argument)