Mar-10-2020, 12:54 PM
in your code you have 2 loops, but they work separately. In addition at the end of first loop
when you try to pass it to
item
is actually the last pair of key and valuewhen you try to pass it to
dict()
function, it tries to make key:value pair from first element, which is in fact string with len 5 e.g. p0004
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs