How did they athis result | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

8th Mar 2019, 6:37 PM
Smail Benloukil
Smail Benloukil - avatar
2 Answers
+ 4
That's not valid python code
8th Mar 2019, 7:11 PM
Anna
Anna - avatar
+ 1
You need to memorize the basic to solve it
8th Mar 2019, 8:22 PM
RISHABH MISHRA
RISHABH MISHRA - avatar