def get_wanted_parameter(season_data, names, index_para):
    """ Take in a list of players' names, a wanted parameter and return
    :param season_data: a dictionary of players' statistics
    :param names: a list of players' names
    :param index_para: index of the wanted parameter depending on the file
    :return:
        a_list_of_wanted_para: a list of wanted parameter for each player
    """
    a_list_of_wanted_para = []
    for name in names:
        stat_for_player = season_data[name]
        para = stat_for_player[index_para]
        a_list_of_wanted_para.append(para)

    return a_list_of_wanted_para