title: How to manipulate dict properly?
body: <p>I have this dictionary:</p>
  
  <pre><code>self.rewards = {'D': -1,'0':100,'&amp;':-100}
  </code></pre>
  
  <p><code>'D'</code> is a key for a standard reward <code>-1</code>.</p>
  
  <p><code>'0'</code> is a key for a good reward <code>100</code>.</p>
  
  <p><code>'&amp;'</code> is a key for a bad reward <code>-100</code>.</p>
  
  <p>Now I need to change that reward system in a mode where the GOOD and BAD rewards are the key itself for example:</p>
  
  <pre><code>self.rewards = {'D': -1, key : key}
  
  #Example:
      #next.tipo is 'D'
      self.rewards[next.tipo] #is -1
      #next.tipo is '10500'
      self.rewards[next.tipo] #is 10500
      #next.tipo is '-4500'
      self.rewards[next.tipo] #is -4500
  </code></pre>
  
  <p>That is possible?</p>
  
  <p>Other way that I thought:</p>
  
  <pre><code>self.rewards = {'D': -1, else : key}
  </code></pre>
  
  <p>Reading above: If the key is <code>'D'</code> then the value is <code>-1</code>, ELSE the value is the key itself.</p>