Archive for the ‘Computers’ Category

HOW TO DO THE FIB METHOD ON PYTHON SIMPLE

May 14, 2008

prevx=0

x=1

nextx=1

while True:

prevx=x

x=nextx

nextx=prevx+x

print prevx

 

 

<that is the exact code for infinite fib numbers> ask me for the guessing game code<>