Edited TaskAO1

This commit is contained in:
IgnBys 2023-10-27 17:06:36 +02:00
parent 1df0dee4da
commit daba231b53

View File

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