# Advent of Code 2020 Day 1

f = open("num_list.txt")
x = []
for i in f:
    x.append((int)(i.strip("\n")))
f.close()

# Part 1
for a in x:
    for b in x:
        if a + b == 2020:
            ansA = (a * b)
print(ansA)

# Part 2
for c in x:
    for d in x:
        for e in x:
            if c + d + e == 2020:
                ansB = (c * d * e)
print(ansB)

1e176bd43ab26d1b7fe5e8bc36fdd0f86f17cf9c
<mask token>

<mask token>
for i in f:
    x.append(int(i.strip('\n')))
f.close()
for a in x:
    for b in x:
        if a + b == 2020:
            ansA = a * b
print(ansA)
for c in x:
    for d in x:
        for e in x:
            if c + d + e == 2020:
                ansB = c * d * e
print(ansB)

f = open('num_list.txt')
x = []
for i in f:
    x.append(int(i.strip('\n')))
f.close()
for a in x:
    for b in x:
        if a + b == 2020:
            ansA = a * b
print(ansA)
for c in x:
    for d in x:
        for e in x:
            if c + d + e == 2020:
                ansB = c * d * e
print(ansB)

# Advent of Code 2020 Day 1

f = open("num_list.txt")
x = []
for i in f:
    x.append((int)(i.strip("\n")))
f.close()

# Part 1
for a in x:
    for b in x:
        if a + b == 2020:
            ansA = (a * b)
print(ansA)

# Part 2
for c in x:
    for d in x:
        for e in x:
            if c + d + e == 2020:
                ansB = (c * d * e)
print(ansB)
