title: Is this working properly - Sum of Fibonacci in Python 3
body: <p>I have a task to make a program that will sum the first 100 Fibonacci numbers. I checked my output in Python, and my output in QBasic 64 and they aren't same. I checked with different inputs also.</p>
  
  <pre><code>Input: 10
  Output: 89
  -----------
  Input: 100
  Output: 573147844013817084101
  </code></pre>
  
  <p>Is it correct ?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>n = int(input())
  print()
  
  p = 0
  d = 1
  z = p + d
  
  print(str(p) + ' + ' + str(d) + ' = ' + str(z))
  
  for i in range(n - 2):
  
      p = d
      d = z
      z = p + d
      print(str(p) + ' + ' + str(d) + ' = ' + str(z))
  
  print('Sum:', z)
  </code></pre>
  
  <p>EDIT: Code edited again, check it now. I just found on Wikipedia.. It depends from what number you start the loop. So if I use (0, 1, 1, 2, 3, 5, 8, 13, 21, and 34) as first 10 Fibonacci numbers, the sum is going to be 88, not 89.</p>