1. get data from csv, skip header of the file. with open('test_data.csv','rb,) as csvfile: readCSV = csv.reader(csvfile, delimiter= ',') headers = next(readCSV) for row in readCSV: distance_travelled.append(row[DISTANCE_COLUM_NO]) 2. get one colum of…