Practice ยท 1 of 2
Validated Temperature
Create a class Temperature with a celsius property. The setter must raise ValueError for values below -273.15 (absolute zero). Reading celsius returns the stored value.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Property Drills