Apr-07-2018, 07:57 PM
(Apr-06-2018, 05:52 PM)nilamo Wrote: Could you copy/paste the entire traceback?
*edit* nevermind, I found it. Here's your snippet:Quote:try: if choiceSword == 1: prompt4() if choiceSword == 2: print("You attacked too slow and he stabbed you!") youLose() elif choice == 2:
Atry
without a matchingexcept
is meaningless, so it's assumed that yourelif
is part of theif choiceSword == 2:
block, and, in THAT case, theelif
isn't indented properly. Adding anexcept
clause should fix the error.
So basically, if I move the except on line 108 up a bit and then fix the indentation I should be good?