Practice · 1 of 3
Point Dataclass
CHALLENGE
Difficulty: intermediate+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Dataclass Drills