SyntaxFix
Write A Post
Hire A Developer
Questions
Wrap it in a function.
NodeT = namedtuple('Node', 'val left right') def Node(val, left=None, right=None): return NodeT(val, left, right)