1# Python 3: Fibonacci series up to n
2>>> def fib(n):
3>>> a, b = 0, 1
4>>> while a < n:
5>>> print(a, end=' ')
6>>> a, b = b, a+b
7>>> print()
8>>> fib(1000)
90 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
1Python is an interpreted,
2high-level and general-purpose
3programming language.
4Created by Guido van Rossum
5and first released in 1991, Python's
6design philosophy emphasizes code
7readability with its notable use of
8significant whitespace. Wikipedia
1Python is an interpreted, high-level, general-purpose programming language.
2
3Created by Guido van Rossum and first released in 1991, Python's design
4philosophy emphasizes code readability with its notable use of significant
5whitespace.