Why does `Coordinate(3, 4)` pass only two arguments to an initializer that declares three parameters?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
The given Coordinate class is finished. Create a single coordinate whose x value is 7 and whose y value is -2, and assign the object itself (not one of its numbers) to point.
Think about which parameters you are expected to supply and which one Python fills in for you.
class Coordinate(object):
""" A coordinate made up of an x and y value """
def __init__(self, xval, yval):
""" Sets the x and y values """
self.x = xval
self.y = yval