My Code Wont Work!

python

#1

Here is my code:

hello = raw_input("Hello, would you like to take a test of what you are? 1. Yes!!!! 2. No!!!! 3. ...... 4. What?")
if hello == "2":
print "Then why are you here?"
elif hello == "4":
print "You Stupid."
elif hello == "1":
print "ok may the questions begin!"
sm = "Hello this is a secret message!!!!"
op1 = 0
op2 = 0
op3 = 0
op4 = 0
t1 = [op1, op2, op3]
t2 = [op1, op2, op4]
t3 = [op2, op3, op4]
t4 = [op1, op3, op4]
q1 = raw_input("What would you rather have? 1. Have lots of minions 2. Be great at weapons 3. Be able to turn invsible and find out secrets instantly. 4. Very good at magic")
if q1 == "1":
op1 += 1
elif q1 == "2":
op2 +=1
elif q1 == "3":
op3 += 1
elif q1 == "4":
op4 += 1
else:
print sm[::-1]
q2 = raw_input("Would you rather: 1. Have 100 clones of you working for you 2. Have 1,000 robots working for you 3. Do stuff twice as fast. 4. Have only 4 minions each 1/4 as fast as the flash ")
if q2 == "1":
op1 += 1
elif q2 == "2":
op2 +=1
elif q2 == "3":
op3 += 1
elif q2 == "4":
op4 += 1
else:
print sm[::-1]
q3 = raw_input(" What Element Would you choose? 1. Fire and lava 2. Any Metal 3. Air 4. Electricity")
if q3 == "1":
op1 += 1
elif q3 == "2":
op2 +=1
elif q3 == "3":
op3 += 1
elif q3 == "4":
op4 += 1
else:
print sm[::-1]
q4 = raw_input(" Whats your favorite color? 1. Black (or any dark color) 2. tan, brown, green, grey 3. white or black, blue 4. orange, yellow, black, grey.")
if q4 == "1":
op1 += 1
elif q4 == "2":
op2 +=1
elif q4 == "3":
op3 += 1
elif q4 == "4":
op4 += 1
else:
print sm[::-1]
q5 = raw_input(" Whats a pet you want and why? 1. A dog (It will be loyal and not fail me) 2. Any thing dangoris or powerful (cant fai; me) 3. A cat (stealthy) 4. A snake (Can kill anyone who fails me or tries to betray me)")
if q5 == "1":
op1 += 1
elif q5 == "2":
op2 +=1
elif q5 == "3":
op3 += 1
elif q5 == "4":
op4 += 1
else:
print sm[::-1]

if op4 > t1:
    print "Your The Emporer!!!"
elif op3 > t2:
    "Your Ventriss!!!"
elif op2 > t4:
    print "Your Genral Grievuss!!!"
elif op1 > t3:
    print "Your Darth Vader"

elif hello == "3":
"Just because your not talking or moving doesnt mean I cant see you."
else:
print "Why are you trying to write something thats not a option..... jerk."

Trust me that I already Checked the spacing , but in the console it wont print Any of these at the end of the test: Your The Emporer!!!, Your Ventriss!!!, Your Genral Grievuss!!!, Your Darth Vader!!!


#2

@bug_boy

Start with proper formatting and then we can move from there.

```python
# CODE GOES HERE
```

Once you do that then you will be more likely to get some help.


#3

@bug_boy

Also I would build a simple question function and then pass it the data I want it to display and then take the input back to do something with it.

Example: Python Code

question = ["Would you like a pickle? Yes: 0, No: 1"]
res= {0: "Here is a pickle!", 1: "Ok, but the pickles are good this year"}
def ask_(question, responses):
    return responses[int(raw_input(question))]

print(ask_(question[0], res))

This is by no means inclusive of what you can do but this should display an easier way to accomplish what you are going for.

If you would like more help feel free to ask.