listb=['1','2','3','4','5','6','7']
dict={}
for?i,j?in?zip(lista,listb):
if?i?not?in?dict.keys():
dict[i]=j
else:
dict[i]=[dict[i]]
dict[i].append(j)
print(dict)