#!/usr/bin/env python start = 0 with open('input.txt', 'r') as f: for line in f: start += int(line) print(start)