Define the readParksFile() function. Parameter: fileName is the…
Question Answered step-by-step Define the readParksFile() function. Parameter: fileName is the… Define the readParksFile() function.Parameter: fileName is the name of the CSV file to read and it has a defaultvalue of “national_parks.csv”Return value: a list of dictionary objects where the keys are the strings from the header row and the values are the information from the rest of the CSV filePage 2 of 21ITP 1152022-01-04Each park is represented with a dictionary. The keys are the words from the header row, which are the following strings: “Code”, “Name”, “State”, “Acres”, “Latitude”, “Longitude”, “Date”, and “Description”. The remaining rows of the CSV file have information for a park.You will notice that the description string for a park may contain a comma. The description for a park can contain the string up to the first comma. If you want to include the entire description, then you will need to use slicing and the str.join() function. Computer Science Engineering & Technology Python Programming ITP 115 Share QuestionEmailCopy link Comments (0)


