Attributes, Read Write, Working, Python.
diameter value and updates the .radius property accordingly. Below is an example of how to use the Circle class: c = Circle(5) print(c.radius) # Output: 5.0 print(c.diameter) # Output: 10.0 c.diameter = 12 print(c.radius) # Output: 6.0 In this example, both .radius and .diameter work as normal