How can I correct the error ' AttributeError: 'dict_keys' object has no attribute 'remove' '?
问题 I was trying shortest path finder using dijkstra algorithm but It seems not working. Can't figure out what the problem is. Here are the code and the error message. (I'm working on Python 3.5. https://www.youtube.com/watch?v=LHCVNtxb4ss) graph = { 'A': {'B': 10, 'D': 4, 'F': 10}, 'B': {'E': 5, 'J': 10, 'I': 17}, 'C': {'A': 4, 'D': 10, 'E': 16}, 'D': {'F': 12, 'G': 21}, 'E': {'G': 4}, 'F': {'E': 3}, 'G': {'J': 3}, 'H': {'G': 3, 'J': 3}, 'I': {}, 'J': {'I': 8}, } def dijkstra(graph, start, end):