Untitled

 avatar
RonGut23
plain_text
17 days ago
316 B
4
Indexable
Never
# Json

import json
with open('desafio.json', encoding='utf-8') as arquivo_json:
    data = json.load(arquivo_json)
    print(data["user"][1]["email"])
    print(data["user"][0]["address"]["city"])
    print(data["user"][1]["orders"][0]["total"]) #(3)
#Rapaz tive um pouco de dificuldade nessa linha aqui (3)
Leave a Comment