Learn Algorithm Design by Building a Shortest Path Algorithm - Step 20

Tell us what’s happening:

I have done what I was asked to do. and it keeps telling me I’m wrong

Your code so far


# User Editable Region

my_graph = {
    "A": [('B',3),('D',1)],

# User Editable Region

    'B': ['A', 'C'],
    'C': ['B', 'D'],
    'D': ['A', 'C']
}
my_graph['A'] = []

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Algorithm Design by Building a Shortest Path Algorithm - Step 20

What does the line at the end do?

I don’t know why that was there. But that was the issue. I just deleted that like and then it worked fine

1 Like