Question: what is the function of a whip in government?
Answer: A whip is an official of a political party whose task is to ensure party discipline in a legislature. This means ensuring that members of the party vote according to the party platform, rather than according to their own individual ideology or the will of their donors or constituents. Whips are the party's "enforcers".