The process by which individuals learn to participate in politics and develop their political identities.