I have a python dictionary, definition of which does not fit in a single line. Could anyone please tell me guidelines for python dictionaries. I currently have this which does not look good to my eyes.
initialstate = {
'state':grid,
'f':find_manhattan_distance(grid,goal),
'g':0,
'h':find_manhattan_distance(grid,goal),
'ancestor': None
}
pep8.pysays:Try this:
Notice the change in spacing after commas and operators. This version passes all the
pep8.pytests.