This is what I am trying to go for but i keep getting error any ideas?
third_value_list =[0,1]
for i in third_value_list
num_list = [1,2]
val_list = [0,1]
dict1 = dict((k, [v]+i) for (k, v) in zip(num_list,val_list))
print dict1
TypeError:can only concatenate list (not 'int') to list
desired output {1:[0,0],2:[1,0],1:[0,1],2:[1,1]}
third_value_list
that you're looping on? If it had multiple values, what would you expect your code to do?[v]+i
is going to do? Break that second-to-last line into several statements to get a clearer understanding of what part is failing.