👤

g worldseries.csv file contains a full list of world series champions in usa; each line includes year, the winner, the runner-up, and the record. write a program that reads the data from the file and stores it in a data structure (list or dictionary). the program prompts the user for a year, and prints to an output file (champion.txt) the winter team, the runner-up team, and the record; the program also prints to the output file, all champions won by the winner. check if the user entered a valid year. here are sample runs: python shellenter the year of a champion: 2020 champion.txt 2020 los angeles dodgers tampa bay rays 4-2