title: Python program summation of a series
body: <p>I tried to create a program in python which basically sums up a series up to the term which is less than 0 that goes like: 
  <code>1+((2X)/1!)+((3X^2)/2!)+((4X^3)/3!)....</code>
  I designed a basic term every term in the series that is <code>((A+1)((X)^A))/A!</code> where <code>A</code> is incremented in a loop through the terms. The program below gives no compilation error however it is not showing the result. Please help. It would be really appreciated. Thank you!</p>
  
  <pre><code>import decimal
  def fact(n):
      if n == 0:
          return 1
      else:
          return n*(fact(n-1))
  x = int(input("Enter the value of x"))
  A=0
  summation=0
  sumt1=(A+1)
  sumt2=(x**A)
  sumt3=fact(x)
  sumt4=sumt1*sumt2
  sumt5=sumt4/sumt3
  
  while (sumt5 &gt; 0.00) :
      summation = summation+sumt5
      A+=1
  finalsum=decimal.Decimal(1+summation)
  print("The value is")
  print(finalsum)
  </code></pre>