Some cleanup, added a few comments all around
This commit is contained in:
parent
ad04dffb69
commit
f44d5b9e66
6 changed files with 51 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
|||
input_file = "/tmp/aocinput"
|
||||
input_file = "input.txt"
|
||||
|
||||
|
||||
def letter_count():
|
||||
valid_passwords = 0
|
||||
|
@ -16,6 +17,7 @@ def letter_count():
|
|||
|
||||
print(f"There are {valid_passwords} valid passwords")
|
||||
|
||||
|
||||
def letter_position():
|
||||
valid_passwords = 0
|
||||
|
||||
|
@ -29,4 +31,4 @@ def letter_position():
|
|||
|
||||
line = passwords.readline()
|
||||
|
||||
print(f"There are {valid_passwords} valid passwords")
|
||||
print(f"There are {valid_passwords} valid passwords")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue