def total(readings: Int) -> Int: var s = 0 for r in readings: s += r return s def main(): print("sum:", total(3, 4, 5))