Skip to content

Commit

Permalink
Missing parentheses in call to 'print'
Browse files Browse the repository at this point in the history
  • Loading branch information
jprojs authored Apr 26, 2017
1 parent 34fd65e commit 69ebff9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions array/garage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ def garage(beg, end):
final_pos = end.index(beg[i])
if empty != final_pos:
beg[final_pos], beg[empty] = beg[empty], beg[final_pos]
print beg
print(beg)
empty = beg.index(0)
beg[beg.index(car)], beg[empty] = beg[empty], beg[beg.index(car)]
print beg
print(beg)
moves += 2
else:
beg[beg.index(car)], beg[empty] = beg[empty], beg[beg.index(car)]
print beg
print(beg)
moves += 1
i += 1
if i == len(beg):
Expand Down

0 comments on commit 69ebff9

Please sign in to comment.