<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_version_and_dims(version, dims, f):
 """Write first two lines of gct file. Args: version (string):
 1.3 by default dims (list of strings):
 length = 4 f (file handle):
 handle of output file Returns: nothing """

    f.write(("#" + version + "\n"))
    f.write((dims[0] + "\t" + dims[1] + "\t" + dims[2] + "\t" + dims[3] + "\n"))