Step 1: Understand that India has a President and a Prime Minister.
Step 2: Know that the Prime Minister is the head of the government.
Step 3: Learn that the President of India has the power to appoint the Prime Minister.
Step 4: Recognize that the Prime Minister is usually the leader of the party that has the most members in the Lok Sabha (the lower house of Parliament).
Step 5: Conclude that after elections, the President looks at the results and appoints the leader of the majority party as the Prime Minister.