#This program will calculate the area #and circumference of a shape #Find out from user what shape they want to calculate shape = input ("Enter s for square, r for rectangle or c for circle ") #Checking to what shape is being calculated and ask for user input if shape == "s": print("square") lenth = float(input("What is the lenght? ")) area = lenth * length perimeter = length * 4 shape = "square" elif shape == "r": print("rectangle") length = float(input("What is the length/ ")) width = float(input("What is the wdth? ")) area = length * width perimeter = (length + width)*2 shape = "rectangle" elif shape == "c": print("circle") radius = float(input("What is the radius? ")) area = 3.14 * radius **2 circumference = 3.14 * radius * 2 shape = "circle" else: print("Doh! Invalid input") #Print statment of correct shape if shape == "square" or shape == "rectangle": print(f"The area of the {shape} is {area}, the perimeter is {perimeter} m") elif shape == "circle": print(f"The area of the shape {