Medium
Property Decorator
Write a
Circle class with a radius attribute and a read-only @property area (2 decimals as a string is fine to print). Read r, print the area, change radius to 2r and print the area again.Input
One number.
Output
Two lines.
Sample 1
Input
1
Output
3.14 12.57
Sample 2
Input
0
Output
0.00 0.00
Output appears here