title: Moving items in a list a certain number of spaces
body: <p>I'm trying to make a simple card game in Python.</p>
  
  <p>I have to be able to move any card in my Hand list either 1 or 3 spaces to the left and if the card that is already in that spot matches either the number or suite then I need to replace it.</p>
  
  <p>Here is what I've tried so far:</p>
  
  <p>Assume MN is the number of spaces specified to move.
  Assume MC is the card specified to move that many spaces.
  Assume Hand is a list of the current cards in my hand.</p>
  
  <pre><code>if MN == '1':
      Hand.replace(Hand[Hand.index(MC) - int(1)], MC)
  if MN == '3':
      Hand.replace(Hand[Hand.index(MC) - int(3)], MC)
  </code></pre>
  
  <p>So basically I gotta find out how to move the specified card (MC) the correct number of spaces (MN) in my list of cards (Hand).</p>
  
  <p>If my Hand looked like this:</p>
  
  <pre><code>[ JC,  4C,  7D,  KS,  3S]
  </code></pre>
  
  <p>Then I should be able to move 3S 1 space to the left and have it replace KS because they have the same suite.</p>
  
  <pre><code>[ JC,  4C,  7D,  3S]
  </code></pre>
  
  <p>Thanks in advance for your help.</p>