Practice ยท 1 of 3
Point Dataclass
Define a dataclass Point with float fields x and y. Two points with the same coordinates must be equal, and repr(Point(1, 2)) must contain 'Point' and the values.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Dataclass Drills