Skip to content

Instantly share code, notes, and snippets.

@lukegb
Forked from anonymous/asasasas.py
Created July 17, 2012 18:48
Show Gist options
  • Save lukegb/3131238 to your computer and use it in GitHub Desktop.
Save lukegb/3131238 to your computer and use it in GitHub Desktop.
pypyppypypypy
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)
@glittershark
Copy link

what

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment