'''

Skidmore,NY,LiberalArts
RPI,NY,Engineering

'''
##
##input_file = open('data.txt', 'r')
##input_file = open('data.txt')
##input_file = open('data.txt', mode='r')
##
##for aline in input_file:
##    line_stripped = aline.strip()
##    fields = line_stripped.split(',')
##    print(fields)
##
##input_file.close()

with open('data.txt') as infile:
    for aline in infile:
        line_stripped = aline.strip()
        fields = line_stripped.split(',')
        print(fields)
        
# has an implicit close once the with clause finishes

outfile_name = 'dataout.txt'
with open(outfile_name, 'w') as output_file:
    nums1 = [n ** 2 + 4*n + 6 for n in range(1,200)]
    for num in nums1:
        output_file.write(str(num) + '\n')



