Duplicated from Artteiv/arxiv_chatbot
46d747a
1
2
3
a = [(1,2),(4,5),(3,5)] dic = [{"id1":x[0]},{"id":x[1]} for x in a]