di = {}
for i, pos in enumerate(listanum):
    if pos not in di:
        di[pos] = [[], []]
di[pos][0][:] = lista[i]
for i, pos in enumerate(listbnum):
    di[pos][1][:] = listb[i]
Adding to values in a dictionary from two lists of different length