Some options that I have tried are below.
if line.strip() == "":
or
if line == "":
if line == "\n":
None of these really worked because they either counted all lines, non-blank lines or didn't count any.
Aucun commentaire:
Enregistrer un commentaire