def format_card(cards):
    """
    Returns a dictionary with the passed cards rank, color, and suit.

    Args:
        cards: A list of 2-letter strings representing card rank and suit.
    """
    formated_cards = []

    for card in cards:
        if card[0] == 'T':
            card_dict = {'rank': '10'}
        else:
            card_dict = {'rank': card[0]}
        if card[1] == 'C':
            card_dict['color'] = 'black'
            card_dict['suit'] = 'clubs'
        elif card[1] == 'D':
            card_dict['color'] = 'red'
            card_dict['suit'] = 'diams'
        elif card[1] == 'H':
            card_dict['color'] = 'red'
            card_dict['suit'] = 'hearts'
        elif card[1] == 'S':
            card_dict['color'] = 'black'
            card_dict['suit'] = 'spades'
        formated_cards.append(card_dict)

    return formated_cards