answer = input("Use feet or meters? (f/m) ") # TODO: Add metric support length = float(input("Pool Length: ")) depth = float(input("Pool Depth (average): ")) width = float(input("Pool Width: ")) volume = length * depth * width # The simple way # if answer == "m": # More complicated, but recognizes M and Meters and meters if "m" in answer.lower(): # Make conversion # Convert volume in cubic meters to cubic feet volume = volume * 35.31 # If the answer was "f", there's nothing extra to do # This part uses English units gallons = volume * 7.4 elephants = gallons / 50 print("It would take " + str(elephants) + " to empty the swimming pool in a day") print("Provided they drink all the water and spill none")