Getting the data

After creating your list, repeatedly ask the user to enter a year. The input will be a string. If it is the empty string, end the program. If it is not the empty string, we will assume that it is an integer representing the year in question. If the user does not enter the empty string, convert their input from a string to an integer. ................
................