from math import pi r = float(input("Enter the radius: ")) area = pi * r**2 circumference = 2 * pi * r diameter = 2 * r print("Area:", round(area, 2)) print("Circumference:", round(circumference, 2)) print("Diameter:", round(diameter, 2))
Create, edit, and import your Python scripts
from math import pi r = float(input("Enter the radius: ")) area = pi * r**2 circumference = 2 * pi * r diameter = 2 * r print("Area:", round(area, 2)) print("Circumference:", round(circumference, 2)) print("Diameter:", round(diameter, 2))