Empowering CS learners, aspiring programmers, and startups with AI, Data Science & Programming insights — scaling skills from learning foundations to enterprise-grade solutions.
Instead of return Point(0, 0), I would do return cls(0, 0). This way if you at some point decide to rename Point to e.g. Point2D, you just have to do it once, after the class keyword.