DevJourney · code I wrote while learning
circle-dimensions.py
179 Br = float(input("Enter the radius of the circle: "))
pi = 22 / 7
a = pi * r**2
p = 2 * pi * r
print("The circle having radius {0} has area {1} and perimeter {2}".format(r, a, p))DevJourney · code I wrote while learning
r = float(input("Enter the radius of the circle: "))
pi = 22 / 7
a = pi * r**2
p = 2 * pi * r
print("The circle having radius {0} has area {1} and perimeter {2}".format(r, a, p))