title: Code is unreachable -error
body: <p>newb here, i am trying to compare the difference between a matrix and its tranposed matrix with a tollerance. First thing is i need to check that it is a square and then if  the differnce is with tollerance.I am getting an error that the last two lines of codes are unreachable. The output should be True True for the above but I only get the first True (ie it is a square matrix.</p>
  
  <pre><code>import numpy as np
  a= np.array(([[1, 2, 3,],[2, 3, 4],[3, 4, 1]]))
  
  def check_symmetric(a,tol):
      b = a.transpose(1, 0)
      print (a)
      print(b)
      rows = a.shape[1]
      col = a.shape[0]
      z= abs(a-b)
      print(z)
      if rows != col: #check to make sure the list is a square
              return False
      return True;
      result = (abs(a - b) &lt;= tol).all()
      print(result)
  
  
  
  print check_symmetric(a,tol=1e-8)
  </code></pre>