Hacker News new | ask | show | jobs
by Izkata 639 days ago
A generator expression would also avoid looping twice - this is valid python:

  total = sum(f(record) for record in housing_records)