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))