From dc7fbd83de4a1cb2e3c0b452dfa451c937305374 Mon Sep 17 00:00:00 2001 From: Abimbola Ronald Date: Sat, 22 Jul 2023 14:13:36 -0700 Subject: [PATCH] Task 6 --- python-classes/6-square.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")