How do I create a dictionary where every key is a value from a list, and every value is all the values from the list except the key?
Example:
if I had
lst = [1, 2, 3, 4, 5, 6]
how would I create the dictionary I described using for loops?
d = {1: [2,3,4,5,6], 2: [1,3,4,5,6], 3: [1,2,4,5,6], 4: [1,2,3,5,6]}
I want to be able to do this using a for loop, but I don't even know where to start.