title: How to subtract a number from a string in Python?
body: <p>I have a list of numbers as:</p>
  
  <p>input    <code>P[i] = int(mycsv[i][5]) # Obtaining my string "P" including 10 int values</code></p>
  
  <p>output    <code>{1: 3, 2: 2, 3: 2, 4: 5, 5: 4, 6: 5, 7: 4, 8: 3, 9: 2, 10: 5}</code></p>
  
  <p>input     <code>d = int(mycsv[1][10]) # Obtaining my number "1", even though it is trivial</code></p>
  
  <p>output    <code>1</code></p>
  
  <p>I just need to create another string named "<code>c_i</code>". It should be this simple:</p>
  
  <pre><code>for i in range(1,11):
      c_i[i] = P[i] - d
  </code></pre>
  
  <p>However, this is not working. Apparently, Python is much weird than Matlab. Any help is appreciated!</p>