# Title: Shape # Author: Stefanie Remondavia # Date: 3/06/25 # Version # purpose: The program is to help people find out about the area of and perimeter of a shape #collect shape input print('Welcome, this program wil calculate the area and perimeter of the shape, lets begin') repeat = "yes" while repeat == "yes": shape = input('What shape from rectangle, square or circle? ') if shape =='rectangle': print('You selected rectangle') length = float(input('What is the length? ')) width = float(input('What is the width? ')) perimeter = (length + width) * 2 Area = length * width print(f'The area of the rectangle is {area} and the perimeter is {perimeter} m') elif shape =='square': print('You selected square') length = float(input('What is the length? ')) perimeter = length * 4 area = length**2 print(f'The area of the square is {area} and the perimeter is {perimeter} m') else: print('You selected circle') radius = float(input('What is the radius?')) area = 3.14 * radius**2 circumference = 2 * 3.14 * radius print(f'The area of the circle is {area} and the circumference is {circumference} m') repeat = input('Do you want to choose another shape? yes/no ') # telling the person the program has ended print('The program has ended')