title: Solve system of linear equations in sympy
body: <p>I'm learning to use <code>sympy.solvers.solveset.linsolve</code> to solve a system of linear equations.  I can solve the system all right, but I'm having trouble getting the results assigned to my variables.  It doesn't seem to do the assignment automatically, as I would expect, but returns a one-element set set containing a tuple of the values, and I have to go through some silly contortions to get the values assigned.  Here's my code:</p>
  
  <pre><code>from sympy import symbols, ones
  from sympy.solvers.solveset import linsolve
  A= ones(6)
  A[0,0]=7
  for k in range(1,6):
      A[k,k]=6
  b=6*ones(6,1)
  p1,p2,p3,p4,p5,p6 = symbols('p1 p2 p3 p4 p5 p6')
  system = (A,b)
  p=linsolve(system,p1,p2,p3,p4,p5,p6)
  p1,p2,p3,p4,p5,p6=tuple(p)[0]
  </code></pre>
  
  <p>Surely there's a more pythonic way of doing this, isn't there?</p>