Re: coding Fibonacci

What exactly is causing you problems?

  ----- Original Message ----- 
  From: edward 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Wednesday, November 04, 2009 9:10 AM
  Subject: coding Fibonacci 


  hello all,
  I am having a problem coding this example in python.  can anyone help please.
  edward
  The Fibonacci series
  0, 1, 1, 2, 3, 5, 8, 13, 21, ... 
  begins with the terms 0 and 1 and has the property that each succeeding term 
is the sum of the two preceding terms. Write a function fibonacci which accepts 
a positive number n and returns a list that contains the first n numbers in the 
Fibonacci series. 

GIF image

Other related posts: