wtorek, 9 grudnia 2014

Such a quick way to build and understand fibonacci in python

#fibo

a, b = 0, 1

while(b < 100):
print (b)
a, b = b, a+b

output:

1
1
2
3
5
8
13
21
34
55
89



Regards
MB :)

Brak komentarzy:

Prześlij komentarz