#This program calculates the perimiter and area of different shapes print ("This program calculates the area, perimiter and circumference of a shape.. lets begin") keep_going = "" while keep_going == "": shape = input("Enter s for square, r for rectangle or c for circle ") if shape == "s" : print ("square") length = float (input(f"what is the length? ")) area_s = length * length per_s = length * 4 print (f"the area of the sqare is {area_s}") print (f"the perimiter of the sqare is {per_s}") elif shape == "r" : print ("rectangle") top = float (input("what is the length of the top? ")) side = float (input("what is the length of the side? ")) area_r = top * side per_r = top + side + top + side print (f"the area of the rectangle is {area_r}") print (f"the perimiter of the rectangle is {per_r}") elif shape == "c" : print ("circle") radius = float (input("what is the radius? ")) import math area_c = math.pi * (radius ** 2) circumference = 2 * math.pi * radius print (f"the area of the circle is {area_c}") print (f"the circumference of the circle is {circumference}") else: print (f"that isnt a valid shape") print ("the programis over...")