I\'m learning Python for a programming placement test I have to take for grad school, and this is literally the first little script I threw together to get a feel for it. My bac
with open("test_file1.txt", "r") as inf:
lines = inf.readlines()
for l in lines[1::2]: # read only alternating lines
numList = map(int, line.split())
print "Sample size:", len(numList), "Results:", sum(numList)