Solution to problem 9 part 1 in Python

This commit is contained in:
David Doblas Jiménez 2022-04-23 18:18:00 +02:00
parent ede1707d48
commit 131a7afee7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ with open("files/P9.txt") as f:
chars = [line for line in f.read().strip().split()]
def recursive_decompression(my_str):
def recursive_decompression(my_str: str) -> str:
marker = re.search(r"\(\d+x\d+\)", my_str)
if not marker: