title: How to replace values using list comprehension in python3?
body: <p>I was wondering how would you can replace values of a list using list comprehension. e.g. </p>
  
  <pre><code>theList = [[1,2,3],[4,5,6],[7,8,9]]
  newList = [[1,2,3],[4,5,6],[7,8,9]]
  for i in range(len(theList)):
    for j in range(len(theList)):
      if theList[i][j] % 2 == 0:
        newList[i][j] = 'hey'
  </code></pre>
  
  <p>I want to know how I could convert this into the list comprehension format.</p>