def get_season_episodes(show, season):
    """
    Creates a list of episode objects from show details.

    Parameters
    ----------
    show : dict
        Return from TV Search Controller
    season : int
        Season to return

    Returns
    -------
    season_list: list
        List of dict objects
    """

    # initialize season list
    season_list = []

    # loop through and form list from episodes
    # that match the season param
    for episodes in show["episodes"]:
        if episodes["season"] == season:
            season_list.append(episodes)

    # return new list
    return season_list