Add better loop function
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Reisinger 2021-03-05 01:15:21 +01:00
parent ed79985fba
commit 118cd41717

View file

@ -15,7 +15,7 @@ def handle(event, context):
while '' in matrix_split: while '' in matrix_split:
matrix_split.remove('') matrix_split.remove('')
for i in range(len(matrix_split)): for i in enumerate(matrix_split):
char = matrix_split[i] char = matrix_split[i]
if char == '&': if char == '&':
matrix_split[i] = ' ' matrix_split[i] = ' '