Skip to content

Commit

Permalink
Task 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronnie5562 committed Jul 22, 2023
1 parent 041dc7a commit 3e95087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-classes/6-square.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def position(self):
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 vaue)):
and all(val >=0 for val in value)):
self.__position = value
else:
raise TypeError("position must be a tuple of 2 positive integers")
Expand Down

0 comments on commit 3e95087

Please sign in to comment.