Q. What is the output of the following code?
Code:
class Point:
def __init__(self, x = 0, y = 0):
self.x = x+1
self.y = y+1
p1 = Point()
print(p1.x, p1.y)
β
Correct Answer: (C)
(1, 1)