In Python 3.7 i get error on comparation `if distances[node] > distances[closest] + graph[closest][node]:` the error is: `TypeError: unsupported operand type(s) for +: 'float' and 'dict'` How can i solve it?
In Python 3.7 i get error on comparation
if distances[node] > distances[closest] + graph[closest][node]:the error is:
TypeError: unsupported operand type(s) for +: 'float' and 'dict'How can i solve it?