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 len(checkWord) < len(hamletFullWord):
if character == hamletArray[counter]: if character == hamletArray[counter]:
checkWord+=character checkWord+=character
counter += 1 counter += 1
else: else:
checkWord = '' checkWord = ''
counter = 0 counter = 0