#area, perimiter and circumfrence calculator V1 #purpose: calculate the area, circumfrence or perimiter of varying shapes #variables #square #rechtangle print('This program will calculate the area, perimiter, and circumfrence of a shape, lets begin...') choosing_shape=input('Enter s for square, r for rechtangle, and c for circle') shape=choosing_shape.lower() if shape=="s": print('cool, you are choosing a square') length_square=float(input('what is the length of your sqaure?')) area_square=length_square * 4 square_perimiter=length_square**2 print(f'So the perimiter is {square_perimiter} and the area is {area_square}') print('this program has ended') elif shape=="r": print('cool, you have chosen a rechtnagle') rechtangle_length=float(input('what is the lenth of your rechtnagle')) rechtangle_width=float(input('and what is the width?')) rechtangle_area=rechtangle_width*rechtangle_length perimiter_rechtangle=2 * (rechtangle_length+rechtangle_width) print(f'So the perimiter is {perimiter_rechtangle} and the area is {rechtangle_area}') print('this program has ended') else: print('cool, so you have chosen a circle') radius=float(input('what is the radius of your cirdcle')) circumfrence=2*3.14*radius circle_area=3.14*radius**2 print(f'So the area of your circle is {circle_area} and the circumfrence is {circumfrence}.') print('this program has ended')