Last edit TaskAO1

This commit is contained in:
IgnBys 2023-10-27 17:17:20 +02:00
parent daba231b53
commit b48d6239ad

View File

@ -16,7 +16,7 @@ def openFile(fileName,hamletArray = ['H','a', 'm', 'l', 'e', 't'], hamletFullWor
line += character line += character
if len(checkWord) < len(hamletFullWord): if len(checkWord) < len(hamletFullWord):
if character == hamletArray[counter]: if re.match(hamletArray[counter], character):
checkWord+=character checkWord+=character
counter += 1 counter += 1
else: else: