# Learn Algorithm Design by Building a Shortest Path Algorithm - Step 15

Not sure what the issue is.

### Your code so far

``````
/* User Editable Region */

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

/* User Editable Region */

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

``````

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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 15

Please talk to us in your own words about what in the instructions or error message has you stuck or confused.

this is quite a syntax error, you can’t have those `key: property` pairs floating around

My code is as follows.

``````
my_graph = {
'A': [('B', 3), ('D', 1)],
'B': ['A', 'C'],
'C': ['B', 'D'],
'D': ['A', 'C']
}
``````

The error I receive is that my dictionary “should have 4 keys called `A` , `B` , `C` , and `D` .”

I do have those four dictionaries. I also cleaned up the other key: properties pairs.

good job, now it passes the tests

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