def map_team_id(code):
    """Take in team ID, read JSON file to map ID to name"""
    for team in TEAM_DATA:
        if team["code"] == code:
            click.secho(team["name"], fg="green")
            break
    else:
        click.secho("No team found for this code", fg="red", bold=True)
def map_team_id ( code ) : for team in TEAM_DATA : if team [ "code" ] == code : click . secho ( team [ "name" ] , fg = "green" ) break else : click . secho ( "No team found for this code" , fg = "red" , bold = True )
Take in team ID, read JSON file to map ID to name