First time here? Check out the FAQ!
answered 2023-06-21 14:39:21 +0100
Here is a way:
FourOfaKind = [ {(v,s) for s in Suits} | {(v2,s2)} for v,v2 in Permutations(Values,2) for s2 in Suits ]