You have too many numerator
s in your code... ;-)
You have one attribute called numerator
on the first line of the __init__
method and another one as a method defined by def numerator(self)
.
There are different possibilities depending on what you need:
- Delete the method and use always
first.numerator
. - Rename the attribute so that they have no conflicts.
- Use a
@property
clause, but I don't think why you would do that in this case, because there is nothing to calculate or modify to the attribute,