Practice ยท 2 of 2
Read-Only Area
Create a class Rect(w, h) with a read-only property area (no setter). Assigning to area must raise AttributeError.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Property Drills