Simply confirming that an empty file returns 0 does not tell you whether whitespace-only lines are being excluded. Using ...
Learn the NumPy trick for generating synthetic data that actually behaves like real data.