LearnPy Hub
← Inheritance & Special Methods problems
Easy

A Helpful __repr__

Write class Point with x and y and a __repr__ returning Point(x=…, y=…). Read points and print the list of them (printing a list uses repr).

Input

n, then n lines 'x y'.

Output

One line.

Sample 1

Input
2
1 2
3 4
Output
[Point(x=1, y=2), Point(x=3, y=4)]

Sample 2

Input
1
0 0
Output
[Point(x=0, y=0)]
solution.py
Output appears here
A Helpful __repr__ · Python practice problem · LearnPy Hub