Last edit TaskAO1
This commit is contained in:
parent
daba231b53
commit
b48d6239ad
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user