Write a function which creates a deck of cards, given the list of suits and values


Topic: Write a function which creates a deck of cards, given the list of suits and values

Solution

def create_deck_of_cards(values: list, suits: list):
    card_deck = []
    for i in range(52):
        tup = (values[i], suits[i])
        card_deck.append(tup)
    return card_deck



List all Python Programs