Print the first 12 terms of the Fibonacci series, starting 0, 1.
n = 12
a, b = 0, 1
terms = []
for _ in range(n): # _ : the loop counter is not needed
terms.append(a)
a, b = b, a + b
print(*terms)
0 1 1 2 3 5 8 13 21 34 55 89
The simultaneous assignment a, b = b, a + b moves the pair one step along without a temporary variable.