Python Iteration Homework : <p>I have 2 questions I need to ask for help with. One question I don't entirely understand so if someone could help me to that would be great. </p>

<p>Question One (the one I don't entirely understand):</p>

<blockquote>
  <p>One definition of e is</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/DAd4A.png" rel="nofollow">Formula for e</a></p>

<blockquote>
  <p>This can be calculated as my_e = 1/math.factorial(0) + 1/math.factorial(1) + 1/math.factorial(2) + 1/math.factorial(3) + …</p>
  
  <p>Let n be the input number of the math.factorial() function. n successively takes on 0, 1, 2, 3 and so on. Find the smallest n such that the absolute value of (my_e – math.e) is less than or equal to 10-10. That is, abs(my_e - math.e) &lt;= (10 ** -10).</p>
</blockquote>

<p>I just don't entirely understand what I am being asked to do. Clarification would be great. Thanks!</p>

<p>Question 2:</p>

<blockquote>
  <p>Ask the user to type in a series of integers. Sum them up and print out the sum and the number of integers the user has entered.</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/MDzXx.png" rel="nofollow">My code</a></p>

<p>So what should happen is after I enter the numbers I want to enter and hit the enter key, it should calculate and print out "sum = 25 count = 3". The screenshot shows what error message I am getting.</p>

<p>Any help you have is welcomed and greatly appreciated.</p>
