title: Swap two values in a list of lists (python)
body: <p>I want to swap every occurrence of two elements in a list of lists. I have seen previous answers but they are different from what I'm trying to do. Also, I am looking for a clean and concise way (preferably list-comprehension) for this purpose.</p>
  <p><strong>Input</strong></p>
  <pre><code>my_list = [[1,2], [1,3], [1,4], [3,2]]
  </code></pre>
  <p><strong>Output</strong></p>
  <pre><code>my_list = [[2,1], [2,3], [2,4], [3,1]]
  </code></pre>
  <p>I am trying to do something like this but no success:</p>
  <pre><code>[1 if i==2 else i, 2 if i==1 else i for i in my_list]
  </code></pre>