Ok here it is
done = False
while not done:
quit = input ("Do you want to quit? ")
if quit == "y" :
done = True;
if not done:
attack = input ("Does your elf attack the dragon? ")
if attack == "y":
print ("Bad choice, you died.")
done = True;
but when I get to
Do you want to quit?
And I enter
n
I get
Traceback (most recent call last):
File "C:\Users\your pc\Desktop\JQuery\dragon.py", line 4, in <module>
quit = input ("Do you want to quit? ")
File "<string>", line 1, in <module>
NameError: name 'n' is not defined
according to this http://www.youtube.com/watch?feature=player_embedded&v=2Z2pH0Ls9Ew#! it should work
raw_input()instead.