here are the text
file_read=open(‘WorldSeries.txt’,’r’) #open for reading
dctYear = {}
dctNumWins = {}
for line in file_read: #read a line from the file
team = line
data = team.split() #split the line read at spaces
dctYear[data[0]] = ”.join(data[1:]) #seperate the year and jointhe team name
file_read.close()
for key in dctYear: #create dictionary with number of wins
if dctYear[key] in dctNumWins:
dctNumWins[dctYear[key]] += 1
else:
dctNumWins[dctYear[key]] = 1
year = input(‘Enter a
OR
OR