Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created December 8, 2020 08:19
Show Gist options
  • Save Abhayparashar31/3159bb0d5b01cf32d3073242b3b2cb23 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/3159bb0d5b01cf32d3073242b3b2cb23 to your computer and use it in GitHub Desktop.
'''
content.yaml
cities:
- London
- Kosice
- Los Vegas
- Delhi
- Trencin
companies:
- Microsoft
- Google
- Duslo Sala
- Matador Puchov
'''
import yaml
with open('content.yaml') as f:
data = yaml.load(f, Loader=yaml.FullLoader)
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment