1
I have the following list:
msg = ['CAD400','Uma Filial...','Solucao:','O campo...','','LIB310','A Filial...','Solucao:','Foi identificado...','Foi corrigido...','','PAG302','Mudanca...','Solucao:','O erro...','O programa...','Programa alterado...']
I want a dictionary with the list data as follows:
msg_nova = {'CAD_001': ['Uma Filial...','Solucao:','O campo...'],'REC_002': ['A Filial...','Solucao:','Foi identificado...','Foi corrigido...'],'PAG_003': ['Mudanca...','Solucao:','O erro...','O programa...','Programa alterado...']}
I have tried several ways and I could not make the descriptions of each program (CAD, REC, PAG) be linked to each one respectively. I even managed to create the keys but the descriptions are each separate in a list.
I don’t see how the initial list reaches the proposed result. Because
['A Filial...'
is associated withREC_002
and notLIB310
? Explain better how values are associated.– Isac