i was busily typing away one day for my text game when i decided that i wanted to test it
so i tried to run it and it came up highlighting the first print in the section below can someone please help me?

choice = raw_input("Look around or go back to the field(look or field)"
                        if choice == "look"
                            print "You find a fishing spear and some clothes, and you put them on."
                            print "with the fishing spear you go and try to fish you succeed and get 4 fish"
                            print "Do you want to go back to the field or go look in the forest?"

Recommended Answers

All 2 Replies

Just some errors you need to correct:

# put the prompt string inside the function's ()
choice = raw_input("Look around or go back to the field(look or field)")

# don't forget the : to start the statement block
if choice == "look":  
    print "You find a fishing spear and some clothes, and you put them on."
    print "with the fishing spear you go and try to fish you succeed and get 4 fish"
    print "Do you want to go back to the field or go look in the forest?"

Thankyou for your help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.