day 2 completed

This commit is contained in:
joelchrono12 2021-12-02 16:02:24 -06:00
parent 344e187509
commit 1087fe2ef9
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
1 changed files with 2 additions and 0 deletions

2
2021/02/solution.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/python3
# Day 2: Dive!
# Vim macros ftw
@ -12,6 +13,7 @@ for i in range(0,len(values)):
depth-=int(word[1])
p1 = hor_pos*depth
print(p1)
aim = 0; depth = 0; hor_pos=0
for i in range(0,len(values)):
word = values[i].split(' ')