The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
import re
file1 = open('D:\desk_to_D\winner.txt', 'r', encoding='utf-8')
file_lines = file1.readlines()
file1.close()
output = {}
temp = re.compile(u"([a-zA-Z]+)([0-9]+)")
for data in file_lines:
part_of_line = temp.match(data).groups()
name = part_of_line[0]
score = part_of_line[1]
output[name]=score
print(output)