Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.15 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def fib(n):
  2.    if n == 0 or n == 1:
  3.       return n
  4.    else:
  5.       return fib(n-1) + fib(n-2)
  6.  
  7. for i in range(36):
  8.     print("n="+str(i)+" => "+str(fib(i)))