Democrats, though not all, learn how to win elections