#------------------------------------------------------------------------------
#  Point3.py
#------------------------------------------------------------------------------

class Point:
   """ 
   Point class encapsulates two numbers (xcoord, ycoord). 
   """
   
   # __init__()
   # initialization function for Point class
   def __init__(self, x=0, y=0):  
      """ 
      Create a new point at (x, y) with x=0 and y=0 as default values.
      """
      self.xcoord = x
      self.ycoord = y
   # end __init__()
   
# end class Point


#-- main (test Point class) ---------------------------------------------------

p = Point()
q = Point(3.7, 8.2)

print(p.xcoord, p.ycoord)  # (0, 0)
print(q.xcoord, q.ycoord)  # (3.7, 8.2)
