mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 05:10:32 +01:00
Fix project, now use python 3.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import string
|
||||
|
||||
letters = [c for c in string.lowercase]
|
||||
letters = [c for c in string.ascii_lowercase]
|
||||
|
||||
password = "hxbxwxba"
|
||||
|
||||
@@ -58,5 +58,5 @@ for x in range(2):
|
||||
increment(passwordCode)
|
||||
while not isOk(passwordCode):
|
||||
increment(passwordCode)
|
||||
|
||||
print "Next password is", ''.join([letters[c] for c in passwordCode])
|
||||
|
||||
print("Next password is", ''.join([letters[c] for c in passwordCode]))
|
||||
|
||||
Reference in New Issue
Block a user