import random


def deal(num_hands, n=5, deck=[r+s for r in '23456789TJQKA' for s in 'SHDC']):
    """Return a list of num_hands different poker hands, each with n cards"""
    random.shuffle(deck)
    # Doesn't work when you want more than 52 cards total
    return [deck[n*i:n*(i+1)] for i in range(num_hands)]