<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def requirements(filename):
 """Reads requirements from a file."""

    with open(filename) as f:
        return [x.strip() for x in f.readlines() if x.strip()]