We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34fd65e commit 69ebff9Copy full SHA for 69ebff9
1 file changed
array/garage.py
@@ -27,14 +27,14 @@ def garage(beg, end):
27
final_pos = end.index(beg[i])
28
if empty != final_pos:
29
beg[final_pos], beg[empty] = beg[empty], beg[final_pos]
30
- print beg
+ print(beg)
31
empty = beg.index(0)
32
beg[beg.index(car)], beg[empty] = beg[empty], beg[beg.index(car)]
33
34
moves += 2
35
else:
36
37
38
moves += 1
39
i += 1
40
if i == len(beg):
0 commit comments