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