diff --git a/python-classes/6-square.py b/python-classes/6-square.py index 453f76f..af09507 100755 --- a/python-classes/6-square.py +++ b/python-classes/6-square.py @@ -36,8 +36,8 @@ def position(self): @position.setter def position(self, value): if (isinstance(value, tuple) and len(value) == 2 and - all(isinstance(val, int) for val in value) and - all(val >= 0 for val in value)): + all(isinstance(val, int) for val in value) and + all(val >= 0 for val in value)): self.__position = value else: raise TypeError("position must be a tuple of 2 positive integers")