Skip to content Skip to sidebar Skip to footer

Created A Dictionary But Some Of The Key Value Pairs Seem To Be Missing Or Not Transfering

I am having an issue with feeding in json style python code converting to a dictionary. I am using a pulling location data from Google and getting all the data that I need. However

Solution 1:

"yes but you are searching in geocode_result['results'] so you should be looking at for i in geocode_result['results']: print i.keys()" - @aws_apprentice

But it turns out that the reason I was getting an error was that not all of the results had a 'price_level', so I am going to use a try statement to avoid that issue.


Post a Comment for "Created A Dictionary But Some Of The Key Value Pairs Seem To Be Missing Or Not Transfering"