A whip is a person in a political party whose job is to make sure the party's members vote with the party. This happens in a legislature. Whips are a party's "enforcers", who talk to each member of the party to make sure that they vote according to the official party policy.