The practice of gerrymandering refers to the redrawing of an area to get a political advantage by one political group…