SyntaxFix
Write A Post
Hire A Developer
Questions
Since you don't call Num.__init__ , the field "n1" never gets created. Call it and then it will be there.
Num.__init__