How can I store a result in a Matrix?
Greg Lindstrom
greg.lindstrom at novasyshealth.com
Fri Nov 19 15:26:56 EST 2004
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 greg.lindstrom at novasyshealth.com
"We are the music makers, and we are the dreamers of dreams" W.W.
More information about the Python-list
mailing list