<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_website_affected(self, website):
 """ Tell if the website is affected by the domain change """

        if self.domain is None:
            return True
        if not self.include_subdomains:
            return self.domain in website['subdomains']
        else:
            dotted_domain = "." + self.domain
            for subdomain in website['subdomains']:
                if subdomain == self.domain or subdomain.endswith(dotted_domain):
                    return True
            return False