#------------------------------------------------------------------------------ # Box.py # Calculates the volume and surface area of a rectangular box whose # dimensions are entered by the user #------------------------------------------------------------------------------ print("Enter the dimensions of the box") length = float(input("length: ")) width = float(input("width: ")) height = float(input("height: " )) volume = length*width*height surface_area = 2*length*width + 2*length*height + 2*width*height print("The volume is:", volume) # notice we don't have to do str(volume) print("The surface area is:", surface_area)