A long, whiplike protrusion from the surface of a eukaryotic cell, whose undulations drive the cell through a liquid medium; similar in structure to a cilium. The flagellum is based on a 9+2 arrangement of microtubules.