I would like to create dictionaries from a certain number of variable ranges as shown below.
I do have a really basic working solution but I was wondering if there was some more succinct way of expressing the same idea (I sense it could be solved with itertools maybe?)
a = [1, 2, 3]
b = ["me", "you", "her"]
c = range(1, 5)
d = ["mon", "tues", "wed"]
dic = {"a": None, "b": None, "c": None, "d": None}
for i in a:
dic["a"] = i
for j in b:
dic["b"] = j
for k in c:
dic["c"] = k
for l in d:
dic["d"] = l
print(dic)
Thanks