title: Changing values on a list of lists
body: <p>I wish could change this list of lists with other values:</p>
  <pre><code>DD = [['10.0.11.100', '10.0.11.10', '10.0.12.10', '10.0.12.100'],
        ['10.0.11.100', '10.0.11.10', '10.0.1.6', '10.0.13.10', '10.0.13.100'],
        ['10.0.11.100','10.0.11.10','10.0.1.6','10.0.13.10','10.0.14.10','10.0.14.100'],
        ['10.0.11.100','10.0.11.10','10.0.1.6','10.0.1.14','10.0.4.6','10.0.22.10','10.0.22.100']]
  </code></pre>
  <p>And I would like to arrive at this result:</p>
  <pre><code>[['10.0.11.100', 'N1', 'N2', '10.0.12.100'],
  ['10.0.11.100', 'N1', '10.0.1.6', 'N3', '10.0.13.100'],
  ['10.0.11.100','N1','10.0.1.6','N3','N4','10.0.14.100'],
  ['10.0.11.100','N1','10.0.1.6','10.0.1.14','10.0.4.6','10.0.22.10','10.0.22.100']]
  </code></pre>
  <p>I tried to do this, but it's the wrong solution:</p>
  <pre><code>for v in DD:
      if v == '10.0.11.10':
        v[i] = 'N1'
      elif v == '10.0.12.10':
        v[i] = 'N2'
      elif v == '10.0.13.10':
        v[i] = 'N3'
      elif v == '10.0.14.10':
        v[i] = 'N4'
  print(v)
  
  ['10.0.11.100',
   '10.0.11.10',
   '10.0.1.6',
   '10.0.1.14',
   '10.0.4.6',
   '10.0.22.10',
   '10.0.22.100']
  </code></pre>
  <p>This is my whole code:</p>
  <pre><code>DD = [['10.0.11.100', '10.0.11.10', '10.0.12.10', '10.0.12.100'],['10.0.11.100', '10.0.11.10', '10.0.1.6', '10.0.13.10', '10.0.13.100'],['10.0.11.100','10.0.11.10','10.0.1.6','10.0.13.10','10.0.14.10','10.0.14.100'],['10.0.11.100','10.0.11.10','10.0.1.6','10.0.1.14','10.0.4.6','10.0.22.10','10.0.22.100']]
  
  for v in DD:
      if v == '10.0.11.10':
        v[i] = 'N1'
      elif v == '10.0.12.10':
        v[i] = 'N2'
      elif v == '10.0.13.10':
        v[i] = 'N3'
      elif v == '10.0.14.10':
        v[i] = 'N5'
  print(v)
  
  ['10.0.11.100',
   '10.0.11.10',
   '10.0.1.6',
   '10.0.1.14',
   '10.0.4.6',
   '10.0.22.10',
   '10.0.22.100']
  </code></pre>
  <p>How could this be done?</p>