Aug-09-2017, 12:21 PM
(This post was last modified: Aug-09-2017, 12:33 PM by sparkz_alot.)
hello There,
There is an "logic" error on my code, and I have not figured it out, what it is!!
Code:
any help appreciated
Cheers
Colombian1976
There is an "logic" error on my code, and I have not figured it out, what it is!!
Code:
#Fibonacci numbers x = 1 y = 1 z = 0 while z < 1000: x = y y = z z = x + y print(z)Why is it printing above 1000? What am I missing here? (Note, I am still very new to Python)
any help appreciated
Cheers
Colombian1976