title: How to convert values inside nested lists into sets?
body: <p>I was wondering if anyone has any ideas of how to convert the values contained in nested lists, so you end up with a list of a list of sets? 
  e.g I have:</p>
  
  <pre><code>[[0, 1, 2, 3, 4, 0, 6, 7, 8], [1, 4, 5, ...], ...]
  </code></pre>
  
  <p>I am trying to convert this so the <code>0</code> is <code>{0}</code>, <code>1</code> is <code>{1}</code>. i.e.:</p>
  
  <pre><code>[[{0}, {1}, {2}, {3}, {4}, {0}, {6}, {7}, {8}], [{1}, {4}, {5}, ...], ...]
  </code></pre>
  
  <p>I currently have:</p>
  
  <pre><code>def ToSets(list):
      for i in range(0,9): #row
          for j in list[i]:
              list[i][j] = set(list[i][j])
     print(list)
  </code></pre>
  
  <p>I keep getting this error:</p>
  
  <pre><code>TypeError: 'int' object is not iterable
  </code></pre>
  
  <p>Does anyone know how I can fix this?</p>