Python Object-Oriented Python Advanced Objects Double

I don't know how to double it. Help please

I'm finding it hard to figure this one out

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

1 Answer

Megan Amendola
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

Hi! You're so close! Instead of super() you should have int.

class Double(int):
    def __new__(*args,**kwargs):
        return int.__new__(*args,**kwargs)