<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_length(self, value, q, strict=False):
 """if value has a length of q"""

        value = stringify(value)
        if value is not None:
            if len(value) == q:
                return
        self.shout('Value %r not matching length %r', strict, value, q)