How to make a class immutable?
Implement create_immutable_point(x, y), returning an object with read-only x and y attributes. The object must reject attribute reassignment, deletion, and addition after construction, while still supporting normal reads. The function should return a dictionary snapshot containing the two values so the result can be graded.
x and y are existing values that do not need validation.x and y attributes.AttributeError.AttributeError.def create_immutable_point(x, y):