>>> # Fibonacci series:
>>> a, b = 0, 1
>>> while a < 10:
...     print(a, end=',')
...     a, b = b, a+b
...
0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987

'Python' 카테고리의 다른 글

설치된 패키지 목록 저장 및 복원  (0) 2022.08.25
How To Update All Python Packages  (0) 2021.10.13
Anaconda3  (0) 2021.08.16
Array/List  (0) 2021.08.16
Number, String  (0) 2021.08.15

+ Recent posts