Generate Python code to print the first ‘n’ elements of the Fibonacci series.
7
def print_fibonacci_series(n):
    a, b = 0, 1
    for i in range(n):
        print(a)
        a, b = b, a + b

print_fibonacci_series(7)