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

Tell us what’s happening:

I connected all nodes with each other, and paid attention to have the correct brackets and commas but still not getting a pass for my code

Your code so far


/* User Editable Region */

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

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

You missed a comma :slightly_smiling_face:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.