<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def writeArray(fp, a, delim = " ", nl = 1):
 """ Writes a sequence a of floats to file pointed to by file pointer. """

    for i in a:
        fp.write("%f%s" % (i, delim))
    if nl:
        fp.write("\n")