-2

I will be more specific, this is a shortened edited bit of my code from my text based game:

var = ""

class example:

def: example2(self):

  raw = raw_input("Enter something")
    if raw == "something":
        raw2 = raw_input("Enter something again")
        if raw2 == "something again"
            pass

I want to store the input of raw2 in the variable var because I need that input later in my code. Actually I want to save the input, so I can use it later.

halfer
  • 19,824
  • 17
  • 99
  • 186
Hugius
  • 380
  • 1
  • 5
  • 15

1 Answers1

5

Remove the '"" raw =' part:

test = raw_input("Put in a word")
Morb
  • 534
  • 3
  • 14