print("This program calculates the area of a rectangle") length = float(input("Type in the length : ")) width = float(input("Type in the width : ")) perimeter = (length * 2) + (width *2) area = length * width print("The area of the rectangle with a length of", length, "and a width of", width, "is", area) print("The perimiter of the rectangle with a length of", length, "and a width of", width, "is", perimeter)