I have dict which got list, what I want is to display list elements in one line.
My dict
data = {'id':[1,2], 'name':['foo','bar'], 'type':['x','y']}
Expected output
name is foo and id is 1
name is bar and id is 2
My code
>>> data = {'id':[1,2], 'name':['foo','bar'], 'type':['x','y']}
>>> for key, value in data.items():
... print(value)
...
['foo', 'bar']
['x', 'y']
[1, 2]
>>>