Artifact ce24fc1eb7c4921961a4b03197c24925a01a1437:
- File tests/langbench/fib.py — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 140) [annotate] [blame] [check-ins using]
def fib(n): if n < 2: return n else: return fib(n-1) + fib(n-2) for i in range(30): print "n=%d => %d" % (i, fib(i))