import json with open("A1_res.json", "r") as file: content=json.load(file) for lst in content: print(lst[0])