''' Purpose: for user-specified dataset, and two user-specified column labels column1 and column2: determines the minimum value min1 in column2 in the dataset determines min_label -- the column2 value whose column1 value equals min1 prints labeled explanatory information about output ''' # get ahold of helpful web functions import url # specify base web folder for datasets CSV_REPOSITORY = 'http://www.cs.virginia.edu/~cs1112/datasets/csv/' # get dataset of interest reply = input( 'Enter the name of a data set: ' ) name = reply.strip() link = CSV_REPOSITORY + name dataset = url.get_dataset( link ) # get the labels for the columns of interest reply = input( 'Enter a column label for the data set: ' ) column1 = reply.strip() reply = input( 'Enter a column label for the data set: ' ) column2 = reply.strip() print() # identify header and data from the dataset header = dataset[ 0 ] table = dataset[ 1 : ] # ....