Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: calculate the numbers in the Fibonacci series

Python: calculate the numbers in the Fibonacci series
{filelink=16196}

def fibonacci(number):
    if number<2:
        return 1
    return fibonacci (number - 1) + fibonacci(number - 2)
for x in range(11):
      print fibonacci(x)

Users who found this page were searching for:

  • how to count no of files in a directory in perl
  • checksum calculation in java
  • python set of dates to occurrence
  • python for calculation: a. Using a list type data structure of 100 elements populate it with job time using the function.
  • python programming fibonacci
  • how to calculate year and days difference between two dates in java
  • python list all files
  • program of python to calculate fibonacci series
  • program in python to calculate the fibonnaci sequence
  • how to calcuculate powers in python

No comments yet.

Leave a Comment