list1 = [1,2,3]
list3 = [3,4,5]
tickers = {'student1':[list1,list2],'student2':[list3,list4]}
for key, value in tickers.items():
print(key, value)
for list in value:
print(list)
In [1]: l1 = list(range(5))
In [2]: l2 = list(range(5, 10))
In [3]: l1
Out[3]: [0, 1, 2, 3, 4]
In [4]: l2
Out[4]: [5, 6, 7, 8, 9]
In [5]: list(zip(l1, l2[1:] + [None]))
Out[5]: [(0, 6), (1, 7), (2, 8), (3, 9), (4, None)]
In [6]: list(map(lambda x, y: (x, y), l1, l2[1:] + [None] ))
Out[6]: [(0, 6), (1, 7), (2, 8), (3, 9), (4, None)]
In [7]: def foo(x, y):
....: return '%s:::%s' % (x, y)
....:
In [8]: list(map(foo, l1, l2[1:] + [None] ))
Out[8]: ['0:::6', '1:::7', '2:::8', '3:::9', '4:::None']