title: Separating real and imaginary parts using Sympy
body: <p>I am trying to segregate real and imaginary parts of the output for the following program.</p>
  
  <pre><code>import sympy as sp
  a = sp.symbols('a', imaginary=True)
  b=sp.symbols('b',real=True)
  V=sp.symbols('V',imaginary=True)
  a=4*sp.I
  b=5
  V=a+b
  print V
  </code></pre>
  
  <p>Kindly help. Thanks in advance.</p>