Skip to content

Instantly share code, notes, and snippets.

import re
import datetime
from collections import OrderedDict
def create_racer_abbreviations_dict(file_name):
"""Retrieves {'abbreviation': (name, team)}" format dict from abbreviations.txt"""
abbreviations_dict = {}
with open(file_name, 'r') as fn:
for line in fn: