human
I am working on the file "2016/python3/Day02.ipynb".
The first task is:
Point
Since each movement is along some direction, we go about this in a very pretentious and academic way. By declaring classes and objects and functions for everything. The end logic is a clean layout of the solution.
The Point class has attributes x and y. We use setter and getter to set the caps on these values.
Can you write Python program for it?

Write me a the Python program you requested?
assistant
#Here is the Python program you requested.

class Point:
    def __init__(self, x=0, y=0):
        self._x, self._y = x, y
    
    @property
    def x(self):
        return self._x
    
    @property
    def y(self):
        return self._y
    
    @x.setter
    def x(self, value):
        if 0 <= value <= 2:
            self._x = value
    
    @y.setter
    def y(self, value):
        if 0 <= value <= 2:
            self._y = value  
    
    def __str__(self):
        return '(%s, %s)' % (self._x, self._y)