python: how to generate pairs of cards in a deck
<p>Suppose that I have the following variables:</p>

<pre><code>suits = ["h","c", "d", "s"]
cards = ["2","3", "4", "5", "6", "7", "8", "9", "t", "j", "q", "k", "a"]
deck = []

for suit in suits:
    for card in cards:
        deck.append(str(card+suit))
</code></pre>

<p>I'd like to write a function that, given a specific card, generates the possible combinations of pairs.</p>

<p>For instance, <code>generatePairs('a')</code> should return something like:</p>

<p><code>['ahac','ahad','ahas','acad','acas','adas']</code></p>

<p>but I'm not sure how to approach writing that function.</p>
