Hello, I'm having problems with dict
. I have two lists: lista1
and lista2
, both of the same size. When I run the command: dicionario = dict(zip(lista1, lista2))
produces a dictionary "smaller" than the size of the list. I've done a lot of testing and that's what's really going on. In each loop I made a print of the size of lista1
and lista2
and they always have the same size. I have separated the operations of zip
and dict
and always made print of both. Result: dict
is not concatenating correctly. Remember that the keys for my dict
are double
and the values
are lists of lists (that is, lista1 = 52.84
and lista2 = [[1, 2, 3],[1, 2, 4],[5, 6, 7]]
for example). The fact that it is a large amount of data can influence? In this case each list has 100 positions, as I said. The lista1
is a list of 100 positions consisting of double
values and lista2
is a list of lists ( lista2 = [list1, list2, list3, ..., list_100]
) that has 100 positions and each [list1, list2, list3, ..., list_100]
element. It's 80. Can I explain? Help haha urgently