From 1087fe2ef96b7885f9852c8d62f0dfc3b58f5fe1 Mon Sep 17 00:00:00 2001 From: joelchrono12 Date: Thu, 2 Dec 2021 16:02:24 -0600 Subject: [PATCH] day 2 completed --- 2021/02/solution.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 2021/02/solution.py diff --git a/2021/02/solution.py b/2021/02/solution.py old mode 100644 new mode 100755 index 18e028c..0d7aa06 --- a/2021/02/solution.py +++ b/2021/02/solution.py @@ -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(' ')