title: Python program to find fibonacci series. More Pythonic way
body: <p>There is another thread to discuss Fibo series in Python. This is to tweak code into more pythonic. <a href="https://stackoverflow.com/questions/494594/how-to-write-the-fibonacci-sequence-in-python">How to write the Fibonacci Sequence in Python</a></p>
  
  <p>I am in love with this program I wrote to solve Project Euler Q2. I am newly coding in Python and rejoice each time I do it The Pythonic way! Can you suggest a better Pythonic way to do this?</p>
  
  <p><a href="http://projecteuler.net/index.php?section=problems&amp;id=2" rel="nofollow noreferrer">Project Euler Q2</a>. Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million.</p>
  
  <pre><code>fib=[]
  def fibo(a=-1,b=1,upto=4000000):
      if a+b&gt;=upto:
          return
      else:
          a,b=b,a+b
          fib.append(b)
          fibo(a,b)
  
  fibo()
  even=[i for i in fib if not i%2]
  print sum(even)
  </code></pre>