0
I would like to fill in a list where each position of the same was a list.
lista = [[], [], []]
have an input: 44 45 49 70 27 73 92 97 95
and I would like to list the numbers so that the Index is mod of each number by 13.
Ex: 44%13 = 5
27%13 = 1
lista = [[ ],[27,92],[ ],[ ],[95],[44,70],[45,97],[ ],[73],[ ],[49],[ ],[ ]]
0 1 2 3 4 5 6 7 8 9 10 11 12
however my problem 'and insert in the internal list, since every time q I will insert, all internal lists have the same value.
ex: lista = [[1,2],[1,2]]
OBS.: the input can change the internal list soon n has a set size
Possible duplicate of how to search for an element in a list that is inside another list?
– Rogério Dec
I think it would be good if you work with dictionaries, it will be simpler to work and even visualize.
– Giovanni Nunes