lst_keys = ['6.95', '6.95', '6.95', '6.95', '6.96', '6.96', '6.96', '6.96', '6.96', '6.96']
lst_vals = ['0/4', '0/10', '0/6', '0/18', '0/9', '0/24', '0/22', '0/11', '0/14', '0/7']
d = dict()
for key, val in zip(lst_keys, lst_vals):
d.setdefault(key, []).append(val)
print(d)
Или ещё эффективнее - эксепшн сработает ровно 2 раза, не надо каждый раз делать проверки:
for key, val in zip(lst_keys, lst_vals):
try:
d[key].append(val)
except KeyError:
d[key] = [val]
С использованием defaultdict:
from collections import defaultdict
d = defaultdict(list)
for key, val in zip(lst_keys, lst_vals):
d[key].append(val)