Project Euler Problem 13

f = open('data', 'r')

s = 0
for line in f:
    s += int(line)
print(str(s)[:10])

f.close()