+ 1
How did they athis result
Class Point: Def _ init_(self, x x= 0, y + 0): Self.x = x Self.y = y Def _ sub_(self, other): X = self.x + other.x Y = self.y + other.y p1 = Point(3, 4) p2 = Point(1, 2) result = p1-p2 print(result.x, result.y) result 4 6.
2 odpowiedzi
+ 4
That's not valid python code
+ 1
You need to memorize the basic to solve it