mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 13:20:32 +01:00
Fix project, now use python 3.
This commit is contained in:
@@ -14,7 +14,7 @@ for line in fileinput.input():
|
||||
match = commandExpr.search(line)
|
||||
|
||||
if not match:
|
||||
print "Invalid string"
|
||||
print("Invalid string")
|
||||
sys.exit(1)
|
||||
|
||||
xStart = int(match.group(3))
|
||||
@@ -38,4 +38,4 @@ total = 0
|
||||
for row in lights:
|
||||
total += sum([int(i) for i in row])
|
||||
|
||||
print total
|
||||
print(total)
|
||||
|
||||
@@ -14,7 +14,7 @@ for line in fileinput.input():
|
||||
match = commandExpr.search(line)
|
||||
|
||||
if not match:
|
||||
print "Invalid string"
|
||||
print("Invalid string")
|
||||
sys.exit(1)
|
||||
|
||||
xStart = int(match.group(3))
|
||||
@@ -38,4 +38,4 @@ total = 0
|
||||
for row in lights:
|
||||
total += sum(row)
|
||||
|
||||
print total
|
||||
print(total)
|
||||
|
||||
Reference in New Issue
Block a user