#Title: Shape Program #Author: Mayson #Date: 12/11/26 #Version: 1 #Purpose: Get the user to ask for a shape and calculate the area and perimeter print ("This program calculates the perimeter and area of different shapes lets begin") shape = input("Choose a shape from sqaure, rectangle or circle ") if shape == "sqaure": print("sqaure") side = float(input("Enter the length of a side ")) sqaure_area = side **2 sqaure_perimeter = side * 4 print(f"The perimeter of a sqaure with a length of {side} is {sqaure_perimeter} " f"the area is {sqaure_area}") if shape == "rectangle": print("rectangle") side = float(input("Enter the length of a side ")) rectagle_area = side **2 rectagle_perimeter = long side * 2 side * 2 print(f"The perimeter of a rectagle with a length of {side} is {rectagle_perimeter} " f"the area is {rectagle_area}") print("The program has ended")