Computer Science, asked by rajivirai55, 7 months ago

6. What is the output of the following code? *
1 point
class Point:
definit__(self, x = 0, y = 0):
self.x = x
self.y = y
def _sub_(self, other):
x = self.x + other.x
y = self.y + other.y
return Point(x,y)
p1 Point(3, 4)
p2 Point(1, 2)
result p1-p2
print(result.x, result.y)
O 22
o 46
000
O 11​

Answers

Answered by SricharanReddy9989
0

Answer:

who will follow me and mark as brainliest answer then only I will send the answer

Explanation:

. .

.

.

.

Similar questions