title: Generate formula for (a+b)^2 in python
body: <p>Is it possible to write a program in Python that generates formula for <code>(a+b)^2</code> (whole square) (<em>display it</em>).
  I mean if I provide input as (a+B)^2 the program should generate the output as <code>a*a + b*b + 2*a*b</code> The program itself should generate the formula for <code>(a+b)^2</code>.
  If my question is not clear, please let me know.</p>