From b48d6239ad4085d1e9a981ffa3349096a78683ce Mon Sep 17 00:00:00 2001 From: IgnBys Date: Fri, 27 Oct 2023 17:17:20 +0200 Subject: [PATCH] Last edit TaskAO1 --- TaskA01/TaskAO1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskA01/TaskAO1.py b/TaskA01/TaskAO1.py index d97dcca..c2790ff 100644 --- a/TaskA01/TaskAO1.py +++ b/TaskA01/TaskAO1.py @@ -16,7 +16,7 @@ def openFile(fileName,hamletArray = ['H','a', 'm', 'l', 'e', 't'], hamletFullWor line += character if len(checkWord) < len(hamletFullWord): - if character == hamletArray[counter]: + if re.match(hamletArray[counter], character): checkWord+=character counter += 1 else: