Hi, varungohil. In line 77, for i in nodes: ... here `i` should be an element of nodes, but next node[i] is used. I wonder if there is a mistake.