# This program calculates the perimeter and area of diffrent shapes print('This program calculates the perimeter and area of different shapes.. Lets begin') shape = input('Choose a shape from sqaure, rectangle or circle ') if shape == 'sqaure': print('square') side = float(input('Enter the length of a side ')) square_area = side **2 square_perimeter = side * 4 print(f'The perimeter of a square with a length of {side} is {square_perimeter} ' f'the area is {square_area}') elif shape == 'rectangle': print('rectangle') else: print('circle') print('The program has ended')