-
-
Save lukegb/3131238 to your computer and use it in GitHub Desktop.
pypyppypypypy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Point: | |
''' Point class for representing and manipulating x,y coordinates. ''' | |
def __init__(self, initX, initY): | |
'''Create a new point at the origin''' | |
self.x = initX | |
self.y = initY | |
p = Point(7, 6) | |
q = Point(8, 2) | |
print(p.x,p.y) | |
print(q.x,q.y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what