For example that i have 2 list and i need to append them into a dictionary with list. i try the for loops but seems does not work. what should i do ?
keys = ('a','b','c')
values = ('1','2','3')
result = {}
for key in keys:
for value in values:
# result[key] = value // does not print out the result i want but instead adding the value to each key
result[key].append(value)
print(result)
# result = {'a':['1','2','3'],
# 'b':['1','2','3'],
# 'c':['1','2','3']}