# Title: Shapes program # Author: Carla # Date: 12/11/2026 # Version: 1 # Purpose: This program will calculate the area, perimeter, and circumference of a shape. #variables more = 'yes' print("This program calculates the perimeter and area of different shapes.. lets begin") while more == 'yes': shape = input('Choose a shape from the following: circle, square, rectangle. ') if shape == 'circle': print('circle') radius = float(input('What is the radius of the circle? ')) circumference = 2 * 3.14 * radius area = 3.14 * radius **2 print(f'The circumference is {circumference} and the area is {area}.') elif 'square': print('square') side = float(input('What is the lenth of the side? ')) area = side **2 perimeter = side * 4 print(f'The perimeter is {perimeter} and the area is {area}.') elif 'rectangle': print('rectangle') length = float(input('What is the lenth of the side? ')) width = float(input('What is the width of the side? ')) area = width * length perimeter = (length * width) *2 print(f'The perimeter is {perimeter} and the area is {area}.') more = input('Would you like to try a different shape? ') print('The program has ended.')