the answer to this question is political socialization
political socialization happens during the lifelong period and will create a certain value/principles that will influence that person in his/her political affiliation. The political socialization will be heavily affected by families, media, peer groups, etc.