Pergunta de entrevista da empresa Synchrony

Dealing with responses from api in python