Ask your own question, for FREE!
Python Syntax 22 Online
OpenStudy (anonymous):

while sword1 !=1: print("player 1 buy equpment:") print("Your money:" + str(money1)) print("steel_sword ataka+3 ") print("equlibrium_sword ataka+2 armor+2 ") print("sword_of_might ataka+6 armor+1 " a1=raw_input("choose sword to buy:") if a1=="steel_sword": ataka1+=3 sword1=1 money1-=200 if a1=="equlibrium_sword": ataka1+=2 armor1+=2 sword1=1 money1-=300 if a1=="sword_of_might": ataka1+=6 armor1+=1 sword1=1 money1-=500

OpenStudy (anonymous):

why i get wrong syntax error at line a1=raw_input("choose sword to buy:") ?

OpenStudy (mertsj):

Sorry...don't have a clue

OpenStudy (mertsj):

yw. Wish I did know that stuff.

OpenStudy (anonymous):

@syltan This looks like Python, and seems like a trivial mistake, an oversite if you will, is causing the error: print("sword_of_might ataka+6 armor+1 " a1=raw_input("choose sword to buy:")" This is your code, but the print statement lacks a closing parenthesis.

OpenStudy (anonymous):

Or ya i haven't notice that tnx much.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!