Python pilih fungsi
>>> from math import comb
>>> comb(20,10)
Impossible Ibis
>>> from math import comb
>>> comb(20,10)
deck = range(1, 53) #get deck of cards from 1 to 52
comb = list(itertools.combinations(deck, 2)) # make list with unic 2 cards combination
len(comb) #output 1326