La suite de Fibonacci

n = 10

a, b = 0, 1

for _ in range(n):
    print(a)
    a, b = b, a + b

Résultat:

0
1
1
2
3
5
8
13
21
34