Actualy that didnt work. I changed the statements to
if sex == "M" or "m":
and i didnt get any error codes when i compiled and ran threw the first test and it worked
I later went back and picked different options, and it always gave me the first option, irregardless of what option i selected.
This is my code so far.
print "Please choose your hero"
sex = raw_input("(M)ale or (F)emale: ")
if sex = "M" or "m":
print "A young and adventerous lad out to save the world!"
else:
print "Look out Lara Croft, there is a new show in town"
print "_"*100
print " "
print "Now for your body build"
body = raw_input("Are you (S)lim, (A)verage, (M)uscular, or (H)eavy: ")
if body == "S" or "s":
print "Thin and wiry, your a willow in the wind"
elif body == "A" or "a":
print "You could pass by him and never notice him, or his gun."
elif body == "M" or "m":
print "Tall and hulking, you wouldnt want to run into him in a dark alley"
else:
print "Hey, big people need love too!"
When i run threw the first test run i just picked the first option because its fastest
here is the output
Please choose your hero
(M)ale or (F)emale: M
A young and adventerous lad out to save the world!
____________________________________________________________________________________________________
Now for your body build
Are you (S)lim, (A)verage, (M)uscular, or (H)eavy: S
Thin and wiry, your a willow in the wind
Now when I run the script, and choose anything but Capitalized First option, this is what i get
Please choose your hero
(M)ale or (F)emale: F
A young and adventerous lad out to save the world!
____________________________________________________________________________________________________
Now for your body build
Are you (S)lim, (A)verage, (M)uscular, or (H)eavy: M
Thin and wiry, your a willow in the wind
So adding the "or" to the if/else statement makes it default to always choosing the first option in each code block, irregardless of which option you pick, upper or lower case.