I've got this code:
all_sorted = [['9', 's'], ['11', 'h'], ['2', 's'], ['13', 'c'], ['13', 's'], ['11', 's'], ['3', 'd']]
pairness = {str(i): 0 for i in range(14, 1, -1)}
for card in all_sorted:
pairness[card[0]] += 1
Is it possible to write 2nd-4th lines of code in 1 more efficient line?