#Title: Shapes Program #Author: Theo Ingham #Date: 12/11/2026 #Version: 1 #Purpose: This prgram calculates the perimeter and area of different shapes print('This progran calculates the perimeter and area of different shapes.. lets begin') shape = input('Choose a shape from square, rectangle or circle ') if shape == "square": print('square') side = float(input("Enter a side length ")) square_area = side **2 square_perimeter = side * 4 print(f"The perimeter of a square with side lengths of {side} is" f"{square_perimeter}, and the area is {square_area}.") elif shape == "rectangle": print('rectangle') side = float(input("Enter a side length ")) width = float(input("Enter a side width ")) rectangle_area = side * width rectangle_perimeter = side + side + width + width print(f"The perimeter of a rectangle with side lengths of {side} and width lengths of " f"{width} is {rectangle_perimeter}, and the area is {rectangle_area}.") elif shape == "circle": print('circle') radius = float(input("Enter a radius ")) circle_area = 3.1415 * (radius **2) circle_circumference = 3.1415 * (radius * 2) print(f"The area of a circle with a radius of {radius} is {circle_area}" f", and the circumference is {circle_circumference}.") print('The program has finished')