Although this is not a single-line font using a list, we make it more elegant:
spades, diamonds, clubs, hearts = collcard = [[] for _ in range(4)]
for c in cards:
collcard[c.suit.value].append(c)
Here, we thus initialize the list with four empty subscribers, then add the map cto the list with the index c.suit.value.
, spades, - diamonds ..
, ( O (n log n)). , O (n) (, - O (1)).
, oneliners , , oneliners .