I have a dictionary named \"location\" like this:
{ \'WA\': [ \'47.3917\', \'-121.5708\' ], \'VA\': [ \'37.7680\', \'
Your problem is in here: float(location[key][0,1])
float(location[key][0,1])
# float objects are length 1 for key in location.keys(): location[key] = [float(location[key][0]),float(location[key][1])] print location