<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def del_option_by_number(self, number):
 """ Delete an option from the message by number :type number: Integer :param number: option naumber """

        for o in list(self._options):
            assert isinstance(o, Option)
            if o.number == number:
                self._options.remove(o)