aboutsummaryrefslogtreecommitdiff
path: root/challenge-117/abigail/python/ch-1.py
blob: 6b6da286401da7cfdde213071c5f898528f3f78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/opt/local/bin/python

#
# See ../README.md
#

#
# Run as: python ch-1.py < input-file
#

import fileinput

sum = 0
SUM_15 = 120

for line in fileinput . input ():
    sum = sum + int ((line . split (",")) [0])

print (SUM_15 - sum)