import csv # import the csv library # reads in a list of dogs # IMPORTANT # the file "dogsdata.txt" MUST be saved in the same folder # as this program def readInList(): with open("dogsdata.txt", newline="") as inputfile: theList = list(csv.reader(inputfile)) return theList # use this for testing you have the full list imported def printList(aList): for item in aList: print(item) # add your subroutines here # START OF MAIN PROGRAM # Read in the list first dogsList = readInList() #Comment out the next line once you know it works printList(dogsList)