def has_free_slots(self):
        """
        Checks if there is a free value smaller than self.size
        :return: True if there is a free value, False if not
        """
        return next(filterfalse(self.numbers.__contains__, count(1))) < self.size
def has_free_slots ( self ) : return next ( filterfalse ( self . numbers . __contains__ , count ( 1 ) ) ) < self . size
Checks if there is a free value smaller than self.size
        :return: True if there is a free value, False if not