the header ... if is_last: ... continue # Skip the footer ... total += item >>> print(total) 300 Nr