G
Greg Lindstrom
Here's one way (more to come, I'm sure)
fibs = []
fibs.append(1)
fibs.append(1)
for n in range(10):
new_fib = fibs[-2] + fibs[-1]
fibs.append(new_fib)
for n in fibs:
print n,
print
1 1 2 3 5 8 13 21 34 55 89 144
Greg Lindstrom (501) 975-4859
NovaSys Health (e-mail address removed)
"We are the music makers, and we are the dreamers of dreams" W.W.
fibs = []
fibs.append(1)
fibs.append(1)
for n in range(10):
new_fib = fibs[-2] + fibs[-1]
fibs.append(new_fib)
for n in fibs:
print n,
1 1 2 3 5 8 13 21 34 55 89 144
Greg Lindstrom (501) 975-4859
NovaSys Health (e-mail address removed)
"We are the music makers, and we are the dreamers of dreams" W.W.