# This program will calculate the area, perimeter and circumference of a shape.. lets begin print("This program will calculate the area, perimeter and circumference of a shape.. lets begin") shape = input("Enter s for square, r for rectangle, and c for circle ") if shape == "s": print("square") side = float(input("Enter the length of a side ")) square_area = side **2 square_perimeter = side * 4 print(f"The perimeter 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("Enter the length of a side ")) height = float(input("Enter the height of a side ") rectangle_area = area **2 rectangle_perimeter = length * 4 print(f"The perimeter of a rectangle with a length of {length} is {rectangle_perimeter} " f"the area is {rectangle_area}") elif shape == "h": print("Hexagon") length = float(input("Enter the length of a side ")) hexagon_area = length **2 hexagon_perimeter = side * 6 print(f"The perimeter of a hexagon with a length of {length} is {hexagon_perimeter} " f"the area is {hexagon_area}") else: print("circle") side = float(input("Enter the radius of a circle ")) circle_area = side **2 circle_circumference = side* 4 print(f"The circumference of a circle with a radius of {radius} is {circle_circumference} " f"the area is {circle_circumference}") print("The program has ended")