Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

syltan

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

  • one year ago
  • one year ago

  • This Question is Closed
  1. syltan
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • one year ago
  2. Mertsj
    Best Response
    You've already chosen the best response.
    Medals 0

    Sorry...don't have a clue

    • one year ago
  3. Mertsj
    Best Response
    You've already chosen the best response.
    Medals 0

    yw. Wish I did know that stuff.

    • one year ago
  4. dpflan
    Best Response
    You've already chosen the best response.
    Medals 2

    @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.

    • one year ago
  5. syltan
    Best Response
    You've already chosen the best response.
    Medals 0

    Or ya i haven't notice that tnx much.

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.