From 9bf1fb50d772cd1780a9a521e0fb88330a5b587c Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Mon, 5 Dec 2022 16:30:04 +1030 Subject: [PATCH] Remove redundant range start --- 2022/day5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/day5.py b/2022/day5.py index 7fe157d..0b4f0d0 100644 --- a/2022/day5.py +++ b/2022/day5.py @@ -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()))