How to print elements of list of an unknown number of zipped lists in Django templates
How to print elements of list of an unknown number of zipped lists in Django templates Question: a = [1,2,3,4,5] b = [[3,4],[4,5],[6,7]] out = [[x if x in l else ‘X’ for x in a] for l in map(set, b)] #out: [[‘X’, ‘X’, 3, 4, ‘X’], [‘X’, ‘X’, ‘X’, 4, 5], [‘X’, ‘X’, ‘X’, …