Question: LANGUAGE: PYTHON class Point: Point class for representing and manipulating x,y coordinates. def __init__(self, initX, initY): Create a new point at the
LANGUAGE: PYTHON
class Point: """ Point class for representing and manipulating x,y coordinates. """ def __init__(self, initX, initY): """ Create a new point at the given coordinates. """ self.x = initX self.y = initY
Given the definition of the class Point above, write one statement that creates an instance of Point with x = 8 and y = 9. Assign this object to the variable my_point.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
