Question: Use Python idole for the output program given below for the file that I have put up that stores the locations for all of the
File Edit View History Bookmarks People Window Help Inbox (524 matthew marwel x SakalaURI: csc 110 Spring x c chegg study l Guided solutio x l Secure https//sakai.uri.edu/portal/site/e3dbb580-16f5-4 Given the following file that stores the locations of all modern summer olympic games: 10 de La write a program that readsin the fie and alows avser to took up the location of the summer olympics na partautar year specifically, the program wil 1. Ask the user to enter the name of the data file. 2. Read the data from the file into two lists one for the years and one for the locations. 3. Ask the user to enter the year for which they are interested in the location of the olympics. 4. Print the location of the olympics for that year Here are a few things to note when working on this program: 1. In the text file, the data is delimited by a tab so you will need to use the following command to get a line of data from year, loc line split ("It" 2. You should have at least three functions in the program: getData, findLocation and main. 3. Be sure to test that the file entered by the user exists and catch the error with exception handling. 4. Be sure to test that the year entered by the user is an integer and catch the error with exception handling
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
