From 118cd417177493149db51c7e39cc8853b239796a Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 5 Mar 2021 01:15:21 +0100 Subject: [PATCH] Add better loop function --- src/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler.py b/src/handler.py index 075d7d7..8a64f13 100644 --- a/src/handler.py +++ b/src/handler.py @@ -15,7 +15,7 @@ def handle(event, context): while '' in matrix_split: matrix_split.remove('') - for i in range(len(matrix_split)): + for i in enumerate(matrix_split): char = matrix_split[i] if char == '&': matrix_split[i] = ' '