advent-of-code

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a636ee04d03136551f6d90105034e77635bf323b
parent 0dc88cab14c50cf64b5abd4dda682e742e7b1502
Author: mpizzzle <michael.770211@gmail.com>
Date:   Sat,  9 Dec 2017 15:21:58 +0000

puzzle 9 complete

Diffstat:
Mpuzzle9.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/puzzle9.py b/puzzle9.py @@ -7,6 +7,7 @@ garbage = False skip = False depth = 0 total = 0 +garbage_characters = 0 for char in stream: if not garbage: @@ -24,8 +25,10 @@ for char in stream: continue if char == '>': garbage = False + else: + garbage_characters += 1 else: skip = False print total -print depth +print garbage_characters