I need to change my output from number 1 = 0 to (1:0) or ('1':0). I want to change to key value pair. Below is the code I'm using.
numberlist = [1]
val_list = [0]
for (number, val) in zip(numberlist, val_list):
print 'number ', number, ' = ', val
output: number 1 = 0
desired output is: ('1':0) or (1:0)
dict(zip(numberlist,val_list))
if you want a dictionary.