#shape perimter calulator v2 print ("this program calulates the preimeter and area of differnt shapes") keep_going = "" while keep going == "", shape = input("choose a shape from square or circle pr rectangle ") if shape =="s": print ("rectangle") 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 = "r": 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 shape =="c": 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") keep_going = input ("to enter another shape press enter or any key to exit") print("program has eneded")