title: Python: How do I replace value in a nested list?
body: <p>How do I replace James's salary from 1000 to 1500 and print James's data?</p>
  
  <pre><code>data = [['Ben', 'Manager', 3000],
             ['James', 'Cleaner', 1000],
             ['Ken', 'Supervisor', 2000]]
  
  for (name,appt,salary) in data:
      if name == 'James':
          salary = 1500
          print(linked_data[1]) 
  </code></pre>
  
  <p>Here's my current output:</p>
  
  <pre><code>['James', 'Cleaner', 1000]
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>['James', 'Cleaner', 1500]
  </code></pre>