Howdy, hoping I can get alittle help today.
First off I have a real bad habit of learning one thing, and getting very fascinated by it and going off on a tangent using what i learned in as many ways as I can think of.
Im a very new person to python, and programing in general. I started doing the tutorials and got to the If/Elif/Else chapter and thought of all the cool things I could do with that.
I started writing a story, that used if/else statements to steer the story in the direction the reader chose, Modeled after the old choose your own adventures and an idea in the beginners project ideas thread.
the code looks alittle like this.
print "Please choose your hero"
sex = raw_input("(M)ale or (F)emale: ")
if sex = "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":
print "Thin and wiry, your a willow in the wind"
didnt print the rest, because its pretty much the same throughout the script.
As i was testing it, i noticed that its cap sensitive. If they press "m" for male, it doesnt register, just hangs up the program.
What Im looking for help with, is how do i have it check for "M", "m" instead of just M
Ive tried various ways just buy guessing
if sex = "M", "m"
["M", "m"]
{"M", "m"}
["M":"m"]
And i dont seem to be able to figure it out.
Any help, be it examples, or links to tutorials, or just general guidelines, it would all be greatly appreciated.