0
SCRIPT
for row in result_psql:
if row in lds_data:
print(lds_data[row]['status'])
else:
continue
OUTPUT
NO
GOAL
I would like to update the value IN THE for YES
STRUCTURE OF THE DICT
lds_data = {cod_cliente: {'status': 'NO', 'nome_cliente': 'NOME_TESTE'}}
Would not be
lds_data[row]['status'] = 'YES'
?– Woss
It worked out buddy, I was trying with . update(), thank you very much!
– Luis Henrique