Trying to get it to recognize Double
class Double(int): def__new__(int) self = int.__new__(self) return self
Steven Parker207,980 Points
There's a few issues:
- there should be a space after the keyword "def"
- the instructions say that the "method should accept self and one argument"
- the method code lines need to be indented more than the "def" line
- the instructions say to "Convert the argument to an int and return it."
Yes, I don't understand why they insisted on using a special keyword like "int." I would have rather used something else more appropriate like maybe "init." Or anything along those lines