PFP191_-_SP_2025_-_RE_3696.webp
Bakugo2001

PFP191_-_SP_2025_-_RE_3696.webp

Kizspy Question: 34
(Choose 1 answer)
What is the output of the following code?
class Point:
def _init_(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)
A. 22
B. 46
C. 00
D. 11

Thông tin

Category
PFP191
Thêm bởi
Bakugo2001
Ngày thêm
Lượt xem
667
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom