<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def head(filename, n=10):
 """ prints the top `n` lines of a file """

    with freader(filename) as fr:
        for _ in range(n):
            print(fr.readline().strip())