Developer Representation (__repr__)

Easy Magic Methods & Operator Overloading
Solve in Playground →

Problem Statement

Create a `Point` class with `x` and `y` coordinates. Overload the `__repr__` method to return an unambiguous developer string: ‘Point(x, y)’. Read two integers, instantiate the point, and print it using `repr(point)`.

Input Format

Two space-separated integers.

Output Format

Print the representation string.

Constraints

None

Sample Input

3 4

Sample Output

Point(3, 4)

Explanation

The `__repr__` method is meant for developers and debugging, ideally returning a string that looks like a valid Python expression.

Starter Code

class Point:
    # Define __init__ and __repr__
    pass

if __name__ == '__main__':
    x, y = map(int, input().split())
    # Instantiate and print using repr()
    pass

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used