def __eq__ (self, other):
    """Compares the (x, y) coordinates of two points for equality.
    Examples:

    >>> Point(8, 7) == Point(8, 7)
    True

    >>> Point(8, 7) == Point(7, 8)
    False

    >>> Point(8, 7) == None
    False
    """
    if isinstance(other, Point):
      if self.z:
        return self.x == other.x and self.y == other.y and self.z == other.z
      else:
        return self.x == other.x and self.y == other.y
    else:
      return False
def __eq__ ( self , other ) : if isinstance ( other , Point ) : if self . z : return self . x == other . x and self . y == other . y and self . z == other . z else : return self . x == other . x and self . y == other . y else : return False
Compares the (x, y) coordinates of two points for equality.
    Examples:

    >>> Point(8, 7) == Point(8, 7)
    True

    >>> Point(8, 7) == Point(7, 8)
    False

    >>> Point(8, 7) == None
    False