#Title:shapes-square #Author:Khushi #Date:12 November #Version:1 #purpose: This program calculates the perimetre and area of diffrent shape print('This program will calculate the area, perimetre and curcumfrence fo a shape.. lets begin') shape = input("Choose a shape from s for square, r for rectangle or c for circle ") if shape == "s": print("square") side = float(input("Enter the length of the side ")) square_area = side **2 square_perimetre = side * 4 print(f"The primeter of a square with a length of {side} is {square_perimeter} " f"the area is {square_area}") elif shape == "r": print("rectangle") length = float(input("What is the length? ")) width = float(input("What is the width? ")) area = length * width perimeter = 2 * (length + width) print(f"The area of the rectangle is {area}, the perimeter is {perimeter} m") elif shape == "c": print("circle") radius = float(input("What is the radius? ")) area = round(math.pi * (radius ** 2), 2) circumference = round(2 * math.pi * radius, 2) print(f"The area of the circle is {area}, the circumference is {circumference} m") print("The program has ended")