---
# System prepended metadata

title: 'our script will be:'

---

# our script will be:

```python
#!/usr/bin/env python3

handle = open('file.json', 'r+t')
for line in handle:
	countryData = handle.readline()
handle.close()

import json

content = json.loads(countryData)

out = {}
dataLen = len(countryData)
for i in range(dataLen):
	out[content[i]['name']] = content[i]

def print_dict(dictionary):
	for i in (len(dictionary.keys())):
		print("Key " + list(dictionary.keys())[i] + " has value " + list(dictionary.values())[i])
		print("Thanks for using our function that prints dictionaries!")
```


# file.json will be:
```json
[
  {'name': 'India',
   'currency': 'INR',
   'TLD': '.in'
  },
  {'name': 'Poland',
   'currency': 'PLN',
   'TLD': '.pl'
  },
  {'name': 'United States of America',
   'currency': 'USD',
   'TLD': '.us'
  },
]
```