animals.jsonlid – unique identifiername – common name of the animalspecies – scientific namehabitat – natural habitatdiet – dietary type1import json
2
3animals = []
4with open("animals.jsonl", "r") as f:
5 for line in f:
6 animals.append(json.loads(line))
7
8print(animals[:5])