def __repr__(self):
    '\n        Returns a string representation of this Point.\n        For each coordinate (x and y), the representation:\n          - Uses no decimal points if the number is close to an integer,\n          - Else it uses 2 decimal places after the decimal point.\n        Examples:\n           Point(10, 3.14)\n           Point(3.01, 2.99)\n        '
    decimal_places = 2
    formats = []
    numbers = []
    for coordinate in (self.x, self.y):
        if (abs((coordinate - round(coordinate))) < (10 ** (- decimal_places))):
            formats.append('{}')
            numbers.append(round(coordinate))
        else:
            formats.append((('{:.' + str(decimal_places)) + 'f}'))
            numbers.append(round(coordinate, decimal_places))
    format_string = (((('Point(' + formats[0]) + ', ') + formats[1]) + ')')
    return format_string.format(numbers[0], numbers[1])
Returns a string representation of this Point.
For each coordinate (x and y), the representation:
  - Uses no decimal points if the number is close to an integer,
  - Else it uses 2 decimal places after the decimal point.
Examples:
   Point(10, 3.14)
   Point(3.01, 2.99)
def __repr__(self):
    '\n        Returns a string representation of this Point.\n        For each coordinate (x and y), the representation:\n          - Uses no decimal points if the number is close to an integer,\n          - Else it uses 2 decimal places after the decimal point.\n        Examples:\n           Point(10, 3.14)\n           Point(3.01, 2.99)\n        '
    decimal_places = 2
    formats = []
    numbers = []
    for coordinate in (self.x, self.y):
        if (abs((coordinate - round(coordinate))) < (10 ** (- decimal_places))):
            formats.append('{}')
            numbers.append(round(coordinate))
        else:
            formats.append((('{:.' + str(decimal_places)) + 'f}'))
            numbers.append(round(coordinate, decimal_places))
    format_string = (((('Point(' + formats[0]) + ', ') + formats[1]) + ')')
    return format_string.format(numbers[0], numbers[1])