from monitor_lib import * # File routine we won't talk about much filename = input("Enter the filename: ") file_lines = open(filename).readlines() for i,line in enumerate(file_lines): d, a1, a2 = [float(n) for n in line.split(",")] width, height = monitor_size(d, a1, a2) print("Monitor ", i) print("Width: ", width) print("Height: ", height) print("Area: ", width*height)