<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_discrete(self):
 """ Return whether this space is discrete """

        for domain in self.domains.values():
            if not domain.is_discrete():
                return False
        return True