Category Archives: programming

Fibonacci numbers : Python

def fibonacci(n): “”” Returns a fibonacci number Author: http://www.victorbyte.net “”” if (n == 1) or (n==2): return 1; elif n >= 3: return fibonacci(n – 1)+fibonacci(n-2);

Posted in introduction, programming | Leave a comment