<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def comment (self, data):
 """ Print HTML comment. @param data: the comment @type data: string @return: None """

        data = data.encode(self.encoding, "ignore")
        self.fd.write("<!--%s-->" % data)