Setters - assign to the attributes



examples/oop/attributes/setters.py
from shapes import Point

p1 = Point(4, 5)
print(p1.x)  # 4
print(p1.y)  # 5

p1.x = 23
p1.y = 17
print(p1.x)  # 23
print(p1.y)  # 17