#shape perimter calulator v2 print ("this program calulates the preimeter and area of differnt shapes") shape = input("choose a shape from square or circle ") if shape =="square": side = float(input("enter the length of a side ")) square_perimeter =side*4 square_area = side*2 print(f"The perimeter is {square_perimeter}, the area is {square_area} ") elif shape = "rectangle": print ("rectangle") length = float(input("enter the length of the rectangle ")) width = float(input("enter the width of the rectangle ")) perimeter = (length + width) *2 area = width * length print(f"The perimeter is {perimeter}, the area is {area} ") elif: print ("circle") radius =float(input("what is the radius ")) area = (2 * radius) *3.141 circumference = 3.141 * radius**2 print (f"the area of the circle {area} the circumference is {circumference}") else: print("that is not a valid shape") print("program has eneded")