Fix project, now use python 3.

This commit is contained in:
Bert Peters
2015-12-14 00:29:02 +01:00
parent cf7d12fbf0
commit 0b94c1e7dc
14 changed files with 35 additions and 34 deletions

View File

@@ -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)

View File

@@ -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)