mercredi 7 janvier 2015

Invalid syntax error on the else [on hold]


else: (syntax error here )
print("Sorry you did not crack the coded words")


MORE CODE



def solved(solved,words):
with open('solved.txt', mode='r+', encoding='utf-8') as wordsFile:
for line in solvedList: #
solvedList.append(line.rstrip('\n'))
solved= """
""".join(solved)
if solved==words:
print("Well done you guessed the words correctly" # this message will print
else: (syntax error
print("Sorry you did not crack the coded words")

Aucun commentaire:

Enregistrer un commentaire