Python - Column Mapped Tuples to dictionary items
Given Tuple Matrix of length 2, map each column's element value with next column and construct dictionary keys. Input : test_list = [[(1, 4), (6, 3), (4, 7)], [(7, 3), (10, 14), (11, 22)]] Output : {1: 7, 4: 3, 6: 10, 3: 14, 4: 11, 7: 22} Explanation : 1 -> 7, 4 -> 3.., as in same column and i