def place(cards, pos, card):
    """
    Replaces the card at a given position in a list.

    Example:
    > place([1,4,7,10,12], 2, 9)
    [1,4,9,10,12]
    """
    result = cards[:]
    result[pos] = card
    return result