Complete the docstring: ('sample_games.txt' is attached and the code in blue attached could be used) from typing import TextIO, Dict, List def get_game_dict(game_data: TextIO) -> Dict[str, List[int]]:...



Complete the docstring: ('sample_games.txt' is attached and the code in blue attached could be used)





from typing import TextIO, Dict, List




def get_game_dict(game_data: TextIO) -> Dict[str, List[int]]:
    """Return a dictionary containing the team name and a list of points
    earned in each game for each team in the open file game_data.


    >>> input_file = open('sample_games.txt')
    >>> get_game_dict(input_file)
    {'Toronto Maple Leafs': [2, 2, 1, 0, 0, 2], 'Grande Prairie Storm': [], \
'Montreal Canadiens': [1, 2, 1, 0, 2]}
    >>> input_file.close()
    """




Extracted text:


Extracted text:

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here