Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created November 2, 2019 21:07
Show Gist options
  • Select an option

  • Save afaqk9394/7feb79f51eb459508d09de89a13fe2cd to your computer and use it in GitHub Desktop.

Select an option

Save afaqk9394/7feb79f51eb459508d09de89a13fe2cd to your computer and use it in GitHub Desktop.
import json
with open('persons.json', 'r') as f:
my_dict = json.load(f)
for distro in my_dict:
print(distro['gender'])
print(distro['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment