본문 바로가기

app/python

python Fibonacci Sequence



x = 0

y = 1

p = 0

for i in range(10):

    print p

    p = x + y

    x = y

    y = p






'app > python' 카테고리의 다른 글

python warning pep8 closing bracket does not match visual indentation  (0) 2014.09.16
no module named setuptools  (0) 2014.09.12
python aes encrypt decrypt  (0) 2014.08.28
utf8 string to int  (0) 2014.08.20
python image to base64 encode/decode  (0) 2014.07.28