HOW TO DO THE FIB METHOD ON PYTHON SIMPLE

By python94

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<>

Tags: , , , , , , , ,

Leave a Reply