Remove redundant range start

This commit is contained in:
Luke Hubmayer-Werner 2022-12-05 16:30:04 +10:30
parent fe75912ce1
commit 9bf1fb50d7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ order_numbers = [[int(x) for x in numbers_pattern.findall(line)] for line in inp
stacks = {k:[c for c in v] for k,v in starting_stack_strings.items()}
for (num, source, dest) in order_numbers:
for i in range(0, num):
for i in range(num):
stacks[dest].append(stacks[source].pop())
print('Part 1: ' + ''.join(s[-1] for s in stacks.values()))