Quick actions

cmd+k|ctrl+k

Navigation

Languages

                                                                                                  .

Snippet info

Language

Python

Visibility

public

Author

krishnakanth

Created

2023-06-08T16:25:26.836694Z

Updated

2023-06-08T16:25:26.836694Z

class Point:
    def init (self, x=0, y=0):
        self.x = x
        self.y = y
def str (self):
    return "({0},{1})".format(self.x, self.y)
def add (self, other): 
    x = self.x + other.x
    y = self.y + other.y 
    
return Point(x, y)
INFO